|
| 1 | +# for external-provisioner |
| 2 | +- op: add |
| 3 | + path: /spec/template/spec/containers/0/args/- |
| 4 | + value: "--enable-leader-election" |
| 5 | + |
| 6 | +- op: add |
| 7 | + path: /spec/template/spec/containers/0/args/- |
| 8 | + value: "--leader-election-type=leases" |
| 9 | + |
| 10 | +- op: add |
| 11 | + path: /spec/template/spec/containers/0/args/- |
| 12 | + value: "--leader-election-namespace=$(PDCSI_NAMESPACE)" |
| 13 | + |
| 14 | +- op: add |
| 15 | + path: /spec/template/spec/containers/0/env |
| 16 | + value: |
| 17 | + - name: PDCSI_NAMESPACE |
| 18 | + valueFrom: |
| 19 | + fieldRef: |
| 20 | + fieldPath: metadata.namespace |
| 21 | + |
| 22 | + |
| 23 | +# # for external-attacher |
| 24 | +- op: add |
| 25 | + path: /spec/template/spec/containers/1/args/- |
| 26 | + value: "--leader-election" |
| 27 | + |
| 28 | +- op: add |
| 29 | + path: /spec/template/spec/containers/1/args/- |
| 30 | + value: "--leader-election-namespace=$(PDCSI_NAMESPACE)" |
| 31 | + |
| 32 | +- op: add |
| 33 | + path: /spec/template/spec/containers/1/env |
| 34 | + value: |
| 35 | + - name: PDCSI_NAMESPACE |
| 36 | + valueFrom: |
| 37 | + fieldRef: |
| 38 | + fieldPath: metadata.namespace |
| 39 | + |
| 40 | + |
| 41 | +# # for external-resizer |
| 42 | +- op: add |
| 43 | + path: /spec/template/spec/containers/2/args/- |
| 44 | + value: "--leader-election" |
| 45 | + |
| 46 | +- op: add |
| 47 | + path: /spec/template/spec/containers/2/args/- |
| 48 | + value: "--leader-election-namespace=$(PDCSI_NAMESPACE)" |
| 49 | + |
| 50 | +- op: add |
| 51 | + path: /spec/template/spec/containers/2/env |
| 52 | + value: |
| 53 | + - name: PDCSI_NAMESPACE |
| 54 | + valueFrom: |
| 55 | + fieldRef: |
| 56 | + fieldPath: metadata.namespace |
| 57 | + |
| 58 | + |
| 59 | +# for external-snapshotter |
| 60 | +- op: add |
| 61 | + path: /spec/template/spec/containers/3/args/- |
| 62 | + value: "--leader-election" |
| 63 | + |
| 64 | +- op: add |
| 65 | + path: /spec/template/spec/containers/3/args/- |
| 66 | + value: "--leader-election-namespace=$(PDCSI_NAMESPACE)" |
| 67 | + |
| 68 | +- op: add |
| 69 | + path: /spec/template/spec/containers/3/env |
| 70 | + value: |
| 71 | + - name: PDCSI_NAMESPACE |
| 72 | + valueFrom: |
| 73 | + fieldRef: |
| 74 | + fieldPath: metadata.namespace |
0 commit comments