Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespace override to community-operator #284

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

bbergquist0930
Copy link

All Submissions:

  • Have you opened an Issue before filing this PR?
  • Have you signed our CLA?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

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

bbergquist0930 and others added 13 commits November 12, 2023 03:37
…amespace-override' into 'cp-main'

Resolve "Update community-operator chart to support having a namespace override"

Closes mongodb#1

See merge request engineering/mgmt/3rdparty/mongodb-helm-charts!1
…de-is-configured' into 'cp-main'

Resolve "Add conditional namespace template if namespaceOverride is configured"

Closes mongodb#3

See merge request engineering/mgmt/3rdparty/mongodb-helm-charts!2
This adds a conditional template for the namespace specified as the
operator override namespace.
…ity-operator-helm-chart' into 'cp-main'

Resolve "Add Gitlab CI support to build and publish the community-operator helm chart"

Closes mongodb#2

See merge request engineering/mgmt/3rdparty/mongodb-helm-charts!3
…main'

Resolve "Complete namespace support of the operator"

Closes mongodb#4

See merge request engineering/mgmt/3rdparty/mongodb-helm-charts!4
…ency-as-community-operator-crds-cp' into 'cp-main'

Draft: Resolve "Package community-operator-crds as local chart dependency as community-operator-crds-cp"

Closes mongodb#5

See merge request engineering/mgmt/3rdparty/mongodb-helm-charts!5
Copy link
Contributor

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.

@github-actions github-actions bot added the Stale label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suppport namespace override in community-operator
1 participant