Skip to content

Commit 721aaaf

Browse files
feat(chart): Add operator.extraArgs to add extra args to the fluent-operator container
This would allow users to provide extra arguments like --watch-namespaces
1 parent 6de723c commit 721aaaf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

charts/fluent-operator/templates/fluent-operator-deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ spec:
9898
fieldRef:
9999
apiVersion: v1
100100
fieldPath: metadata.namespace
101-
{{- with .Values.operator.disableComponentControllers }}
102-
args: ["--disable-component-controllers","{{ . }}"]
103-
{{- end }}
101+
args:
102+
{{- with .Values.operator.extraArgs }}
103+
{{- toYaml . | nindent 10 }}
104+
{{- end }}
105+
- --disable-component-controllers={{ .Values.operator.disableComponentControllers | quote }}
104106
volumeMounts:
105107
- name: env
106108
mountPath: /fluent-operator

charts/fluent-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ operator:
6464
# setting fluentbit.crdsEnable or fluentd.crdsEnable values to false.
6565
# By default all CRDs are deployed.
6666
disableComponentControllers: ""
67+
# Extra arguments given to the controller flags
68+
extraArgs: []
69+
# - --watch-namespaces=logging
6770

6871
fluentbit:
6972
# Installs a sub chart carrying the CRDs for the fluent-bit controller. The sub chart is enabled by default.

0 commit comments

Comments
 (0)