mongodb / helm-charts

Apache License 2.0
99 stars 92 forks source link

Add namespace override to community-operator #284

Open bbergquist0930 opened 1 year ago

bbergquist0930 commented 1 year ago

All Submissions:

Closes #276

This allows the community-operator to be used as a subchart provided that #283 is merged in. This adds in a _helpers.tpl to help support the namespace override and creation. Also changes are made to set the Helm labels on the resources so that Helm knows about them. This is useful to support multiple instances of the community-operator chart in separate namespaces.

This completes the namespace support of the operator. The operator should be able to be installed in the default namespace or in a custom namespace.

Usages

Install in the default chart namespace and the default Kubernetes namespace

helm install community-operator <chart>

Install in a custom chart namespace and the default Kubernetes namespace

helm install community-operator <chart> --namespace mongodb-chart --create-namespace

Install in the default chart namespace and a custom Kubernetes namespace

helm install community-operator <chart> --set operator.namespace.create=true --set operator.namespace.name=mongodb

Install in a custom chart namespace and a custom Kubernetes namespace

helm install community-operator <chart> --namespace mongodb-chart --create-namespace --set operator.namespace.create=true --set operator.namespace.name=mongodb
github-actions[bot] commented 10 months ago

This PR is being marked stale because it has been open for 60 days with no activity. Please update the PR or ask for a fresh review.