fix: Add capability to skip crd installation during helm install (#625)
Signed-off-by: Esten Rye <esten.rye@ryezone.com>
This commit is contained in:
parent
918a69732f
commit
a40e13b421
|
|
@ -2,6 +2,7 @@ config/rendered/release.yaml
|
|||
.tar.gz
|
||||
config/manager/manager.yaml
|
||||
config/manager/kustomization.yaml
|
||||
readme-generator-for-helm
|
||||
tmpcrd.yaml
|
||||
schemas
|
||||
.vscode
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -245,6 +245,8 @@ set-helm-overlay:
|
|||
${eval KUSTOMIZE_OVERLAY = HELM}
|
||||
|
||||
helm-package: set-helm-overlay generate release-manifests helm
|
||||
mkdir -p chart/open-feature-operator/templates/crds
|
||||
mv chart/open-feature-operator/templates/*customresourcedefinition* chart/open-feature-operator/templates/crds
|
||||
$(HELM) package --version $(CHART_VERSION) chart/open-feature-operator
|
||||
mkdir -p charts && mv open-feature-operator-*.tgz charts
|
||||
$(HELM) repo index --url https://open-feature.github.io/open-feature-operator/charts charts
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
# ignore generated templates
|
||||
templates/*.yaml
|
||||
templates/crds/*.yaml
|
||||
# templates/namespace.yaml is not generated, it's a special case
|
||||
!templates/namespace.yaml
|
||||
|
|
@ -137,7 +137,7 @@ The command removes all the Kubernetes components associated with the chart and
|
|||
| `controllerManager.kubeRbacProxy.resources.requests.cpu` | Sets cpu resource requests for kube-rbac-proxy. | `5m` |
|
||||
| `controllerManager.kubeRbacProxy.resources.requests.memory` | Sets memory resource requests for kube-rbac-proxy. | `64Mi` |
|
||||
| `controllerManager.manager.image.repository` | Sets the image for the operator. | `ghcr.io/open-feature/open-feature-operator` |
|
||||
| `controllerManager.manager.image.tag` | Sets the version tag for the operator. | `v0.5.3` |
|
||||
| `controllerManager.manager.image.tag` | Sets the version tag for the operator. | `v0.5.4` |
|
||||
| `controllerManager.manager.resources.limits.cpu` | Sets cpu resource limits for operator. | `500m` |
|
||||
| `controllerManager.manager.resources.limits.memory` | Sets memory resource limits for operator. | `128Mi` |
|
||||
| `controllerManager.manager.resources.requests.cpu` | Sets cpu resource requests for operator. | `10m` |
|
||||
|
|
|
|||
|
|
@ -40,26 +40,16 @@ If you are upgrading OFO to `v0.5.3` or lower, `flagd-proxy` (if present) won't
|
|||
CRDs are not upgraded automatically with helm (https://helm.sh/docs/chart_best_practices/custom_resource_definitions/).
|
||||
OpenFeature Operator's CRDs are templated, and can be updated apart from the operator itself by using helm's template functionality and piping the output to `kubectl`:
|
||||
|
||||
```console
|
||||
helm template openfeature/open-feature-operator -s templates/{CRD} | kubectl apply -f -
|
||||
```
|
||||
|
||||
For the `featureflags.core.openfeature.dev` CRD:
|
||||
To install the CRDs:
|
||||
|
||||
```sh
|
||||
helm template openfeature/open-feature-operator -s templates/apiextensions.k8s.io_v1_customresourcedefinition_featureflags.core.openfeature.dev.yaml | kubectl apply -f -
|
||||
```
|
||||
|
||||
For the `featureflagsources.core.openfeature.dev` CRD:
|
||||
|
||||
```sh
|
||||
helm template openfeature/open-feature-operator -s templates/apiextensions.k8s.io_v1_customresourcedefinition_featureflagsources.core.openfeature.dev.yaml | kubectl apply -f -
|
||||
helm template openfeature/open-feature-operator -s "templates/crds/*.yaml" | kubectl apply -f -
|
||||
```
|
||||
|
||||
Keep in mind, you can set values as usual during this process:
|
||||
|
||||
```console
|
||||
helm template openfeature/open-feature-operator -s templates/{CRD} --set defaultNamespace=myns | kubectl apply -f -
|
||||
```sh
|
||||
helm template openfeature/open-feature-operator -s "templates/crds/*.yaml" --set defaultNamespace=myns | kubectl apply -f -
|
||||
```
|
||||
|
||||
### Uninstall
|
||||
|
|
|
|||
Loading…
Reference in New Issue