Skip to content

Commit 901d130

Browse files
authored
feat: add POD_NAMESPACE environment var to the snapshot controller
1 parent c38f88b commit 901d130

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deploy/csi-snapshot-controller.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ spec:
5656
args:
5757
- "--v=2"
5858
- "--leader-election=true"
59-
- "--leader-election-namespace=kube-system"
59+
- "--leader-election-namespace=$(POD_NAMESPACE)"
60+
env:
61+
- name: POD_NAMESPACE
62+
valueFrom:
63+
fieldRef:
64+
fieldPath: metadata.namespace
6065
resources:
6166
limits:
6267
memory: 300Mi

0 commit comments

Comments
 (0)