Skip to content

Commit

Permalink
Merge branch '3-add-conditional-namespace-template-if-namespaceoverri…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
bbergquist0930 committed Nov 13, 2023
2 parents 50b8098 + 20bd489 commit e18e136
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions charts/community-operator/templates/operator_namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{- if .Values.operator.namespaceOverride }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.operator.namespaceOverride }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/community-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ operator:

# Allow the operator namespace to be overridden which is useful when having this operator
# be a subchart dependency
# namespaceOverride:
#namespaceOverride: mongodb-solution

# Name of the operator image
operatorImageName: mongodb-kubernetes-operator
Expand Down

0 comments on commit e18e136

Please sign in to comment.