loft-sh / component-chart

Kubernetes Component Chart - Helm Chart for Application Components in Kubernetes
https://devspace.sh/component-chart/docs/introduction
Apache License 2.0
32 stars 39 forks source link

[docs] Document containers.*.envFrom #75

Open joaomlneto opened 2 years ago

joaomlneto commented 2 years ago

The documentation currently only shows how to load single keys from Secrets and Configmaps using env.valueFrom.secretKeyRef and env.valueFrom.configMapKeyRef.

However, one can use envFrom.configMapRef and envFrom.secretRef to load all variables from a ConfigMap/Secret resp.:

yaml
      containers:
      - image: ${IMAGE}
        envFrom:
        - configMapRef:
            name: my-config-map