Hi guys ...any one having any idea on adding param...
# fluent-operator
r
Hi guys ...any one having any idea on adding parameters in Fluentd.Spec ...we are trying to pass pass custom environment var so used envVars and passed name value pair but it validation fails unknow field envVars
p
r
apiVersion: fluentd.fluent.io/v1alpha1 kind: Fluentd metadata: name: fluentd namespace: fluent labels: app.kubernetes.io/name: fluentd spec: envVars: - name: TENANT_ID value: '1717337050' volumes: - name: fluentd-buffer-pv persistentVolumeClaim: claimName: fluentd-buffer-pvc-fluentd-0 globalInputs: - forward: bind: 0.0.0.0 port: 24224 workers: 2 replicas: 1 image: kubesphere/fluentd:latest fluentdCfgSelector: matchLabels: config.fluentd.fluent.io/enabled: "true"
p
what does
kubectl explain ...
tell you about it btw on the CRD? Make sure the CRDs are updated as well to the latest version (or the version matching the operator version you are using - and that version has that field)
r
Thanks Pat i think my CRDs definition is old so i will try with the latest hopefully it will work
p
@Benjamin Huo I think if we're updating CRDs we should update the versions rather than just keep it at alpha1
b
@Pat sure, we’ll take a look.