feat: add POD_NAMESPACE environment var to the snapshot controller
This commit is contained in:
parent
c38f88be6c
commit
901d1305e5
@ -56,7 +56,12 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- "--v=2"
|
- "--v=2"
|
||||||
- "--leader-election=true"
|
- "--leader-election=true"
|
||||||
- "--leader-election-namespace=kube-system"
|
- "--leader-election-namespace=$(POD_NAMESPACE)"
|
||||||
|
env:
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 300Mi
|
memory: 300Mi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user