Finally fix go templating awkwardness
This commit is contained in:
parent
c64ef24b0c
commit
c877d9c470
@ -91,7 +91,7 @@ spec:
|
|||||||
{{- if .Values.enableVolumeScheduling }}
|
{{- if .Values.enableVolumeScheduling }}
|
||||||
- --feature-gates=Topology=true
|
- --feature-gates=Topology=true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if gt .Values.replicaCount 1.0 }}
|
{{- if gt ( .Values.replicaCount | int ) 1 }}
|
||||||
- --enable-leader-election
|
- --enable-leader-election
|
||||||
- --leader-election-type=leases
|
- --leader-election-type=leases
|
||||||
{{- end}}
|
{{- end}}
|
||||||
@ -106,7 +106,7 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- --csi-address=$(ADDRESS)
|
- --csi-address=$(ADDRESS)
|
||||||
- --v=5
|
- --v=5
|
||||||
{{- if gt .Values.replicaCount 1.0 }}
|
{{- if gt ( .Values.replicaCount | int ) 1 }}
|
||||||
- --leader-election=true
|
- --leader-election=true
|
||||||
- --leader-election-type=leases
|
- --leader-election-type=leases
|
||||||
{{- end}}
|
{{- end}}
|
||||||
@ -121,7 +121,7 @@ spec:
|
|||||||
image: {{ printf "%s:%s" .Values.sidecars.snapshotterImage.repository .Values.sidecars.snapshotterImage.tag }}
|
image: {{ printf "%s:%s" .Values.sidecars.snapshotterImage.repository .Values.sidecars.snapshotterImage.tag }}
|
||||||
args:
|
args:
|
||||||
- --csi-address=$(ADDRESS)
|
- --csi-address=$(ADDRESS)
|
||||||
{{- if gt .Values.replicaCount 1.0 }}
|
{{- if gt ( .Values.replicaCount | int ) 1 }}
|
||||||
- --leader-election=true
|
- --leader-election=true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user