Skip to content

Commit b92c449

Browse files
committed
fix(chart): make max-concurrent-reconciles flag conditional
Only pass --max-concurrent-reconciles when the value is greater than 1, so the chart remains compatible with older operator images that don't support this flag.
1 parent aff926f commit b92c449

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

charts/pulsar-resources-operator/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ spec:
6262
- --leader-elect
6363
- --resync-period={{ .Values.features.resyncPeriod | default 10 }}
6464
- --retry-count={{ .Values.features.retryCount | default 5 }}
65-
- --max-concurrent-reconciles={{ .Values.features.maxConcurrentReconciles | default 1 }}
65+
{{- if and .Values.features.maxConcurrentReconciles (gt (int .Values.features.maxConcurrentReconciles) 1) }}
66+
- --max-concurrent-reconciles={{ .Values.features.maxConcurrentReconciles }}
67+
{{- end }}
6668
command:
6769
- /manager
6870
env:

0 commit comments

Comments
 (0)