Skip to content

Commit f15abd9

Browse files
authored
add watchnamespace to values.yaml in helm chart (#105)
1 parent a96d4af commit f15abd9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

charts/ext-postgres-operator/templates/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
name: {{ include "chart.fullname" . }}
3636
env:
3737
- name: WATCH_NAMESPACE
38-
value: ""
38+
value: {{ .Values.watchNamespace | default "" }}
3939
- name: POD_NAME
4040
valueFrom:
4141
fieldRef:

charts/ext-postgres-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ image:
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: ""
1212

13+
# Override chart name, defaults to Chart.name
1314
nameOverride: ""
15+
# Full chart name override
1416
fullnameOverride: ""
1517

1618
serviceAccount:
@@ -37,6 +39,10 @@ resources: {}
3739
# cpu: 100m
3840
# memory: 128Mi
3941

42+
# Which namespace to watch in kubernetes, empty string means all namespaces
43+
watchNamespace: ""
44+
45+
# Define connection to postgres database server
4046
postgres:
4147
# postgres hostname
4248
host: "localhost"

0 commit comments

Comments
 (0)