Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Generate deployment manifest (#242)
Browse files Browse the repository at this point in the history
* remove hardcoded images

* fix image

* Update examples/janus-cr-with-app-configs.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* change lookup

* Update config/manager/default-config/db-statefulset.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update config/manager/default-config/deployment.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* change lookup

* change lookup

* Update config/manager/default-config/deployment.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* add generated files

* fix image

* fix service raw config

* operator-script

* Update Makefile

Co-authored-by: Armel Soro <armel@rm3l.org>

* fix

* Apply suggestions from code review

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
  • Loading branch information
gazarenkov and rm3l committed Feb 28, 2024
1 parent 6231da2 commit fdbe46b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ gosec.sarif
# from prepare-restricted-environment script
catalog_mirror.log
manifests-rhdh-index-*
rhdh-operator-*.yaml
rhdh-disconnected-install/
rhdh-disconnected-install.Dockerfile

7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,10 @@ show-img:

show-container-engine:
@echo -n $(CONTAINER_ENGINE)

.PHONY: deployment-manifest
deployment-manifest: manifests kustomize ## Generate manifest to deploy operator.
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
$(KUSTOMIZE) build config/default > rhdh-operator-${VERSION}.yaml
@echo "Generated operator script rhdh-operator-${VERSION}.yaml"

12 changes: 11 additions & 1 deletion docs/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ make run

- Or deploy the controller to the cluster with the image specified by `IMG`:
```sh
make deploy IMG=<your-registry>/backstage-operator:tag
make deploy [IMG=<your-registry>/backstage-operator:tag]
```

- To generate deployment manifest, use:
```sh
make deployment-manifest [IMG=<your-registry>/backstage-operator:tag]
```
it will create the file rhdh-operator-${VERSION}.yaml on the project root and you will be able to share it to make it possible to deploy operator with:
```sh
kubectl apply -f <path-or-url-to-deployment-script>
```

### Uninstall CRDs
Expand Down Expand Up @@ -102,3 +111,4 @@ make manifests
**NOTE:** Run `make --help` for more information on all potential `make` targets

More information can be found via the [Kubebuilder Documentation](https://book.kubebuilder.io/introduction.html)

0 comments on commit fdbe46b

Please sign in to comment.