diff --git a/charts/fluent-operator/templates/fluent-operator-deployment.yaml b/charts/fluent-operator/templates/fluent-operator-deployment.yaml index 0cb8a687d..8417a51aa 100644 --- a/charts/fluent-operator/templates/fluent-operator-deployment.yaml +++ b/charts/fluent-operator/templates/fluent-operator-deployment.yaml @@ -102,7 +102,9 @@ spec: {{- with .Values.operator.extraArgs }} {{- toYaml . | nindent 10 }} {{- end }} - - --disable-component-controllers={{ .Values.operator.disableComponentControllers | quote }} + {{- with .Values.operator.disableComponentControllers }} + - {{ printf "%s=%s" "--disable-component-controllers" . | quote }} + {{- end }} volumeMounts: - name: env mountPath: /fluent-operator