diff --git a/charts/ext-postgres-operator/templates/operator.yaml b/charts/ext-postgres-operator/templates/operator.yaml index 0f85af5a..1ea766b2 100644 --- a/charts/ext-postgres-operator/templates/operator.yaml +++ b/charts/ext-postgres-operator/templates/operator.yaml @@ -35,7 +35,7 @@ spec: name: {{ include "chart.fullname" . }} env: - name: WATCH_NAMESPACE - value: "" + value: {{ .Values.watchNamespace | default "" }} - name: POD_NAME valueFrom: fieldRef: diff --git a/charts/ext-postgres-operator/values.yaml b/charts/ext-postgres-operator/values.yaml index 1da10867..c2286321 100644 --- a/charts/ext-postgres-operator/values.yaml +++ b/charts/ext-postgres-operator/values.yaml @@ -10,7 +10,9 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: "" +# Override chart name, defaults to Chart.name nameOverride: "" +# Full chart name override fullnameOverride: "" serviceAccount: @@ -37,6 +39,10 @@ resources: {} # cpu: 100m # memory: 128Mi +# Which namespace to watch in kubernetes, empty string means all namespaces +watchNamespace: "" + +# Define connection to postgres database server postgres: # postgres hostname host: "localhost"