datadog-operator icon indicating copy to clipboard operation
datadog-operator copied to clipboard

Loading environment variables using envFrom

Open Ekman opened this issue 2 years ago • 4 comments

This is potentially a feature request.

Is it possible to use the envFrom, or something similar that produces the same results?

override:
  nodeAgent:
    envFrom:
      - secretRef:
          name: my-secret-secret

Ekman avatar Aug 18 '23 14:08 Ekman

Hi @Ekman, we don't currently have an envFrom field, but I'll add envFrom as a feature request to our backlog. Would using env.valueFrom work for your use case for now? https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-using-secret-data

khewonc avatar Aug 18 '23 17:08 khewonc

Thanks for the suggestion! Unfortunately, env.valueFrom does not cut it for us as we have too many secrets to load.

Ekman avatar Aug 21 '23 14:08 Ekman

I see, thanks for the additional detail. We'll reach out on this thread with any updates on the issue.

khewonc avatar Aug 22 '23 15:08 khewonc

Hi, Any news on this issue ?

jredel avatar May 13 '24 13:05 jredel