Skip to content

Commit

Permalink
Added WATCH_NAMESPACE in charts (#154)
Browse files Browse the repository at this point in the history
Signed-off-by: anisha.kj <[email protected]>
  • Loading branch information
anishakj authored Mar 31, 2020
1 parent 6899194 commit 6fd0216
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions charts/zookeeper-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ spec:
- zookeeper-operator
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
value: "{{ .Values.watchNamespace }}"
- name: POD_NAME
valueFrom:
fieldRef:
Expand Down
5 changes: 5 additions & 0 deletions charts/zookeeper-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ serviceAccount:
# Whether to create custom resource
crd:
create: true

#
# Specifies which namespace the Operator should watch for new ClusterResource resources
# Default: "" == Watch ALL namespaces
watchNamespace: ""

0 comments on commit 6fd0216

Please sign in to comment.