feat(helm): add envFromSecret (#5778)

* (feature): Adding EnvFrom a specified file

* (update): Update values.yaml with envFrom

* (doc) : update readme with envFromSecret
This commit is contained in:
Paulus Lucas 2021-09-23 05:11:45 +02:00 committed by GitHub
parent 86f47b6112
commit a99e54a6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,7 @@ The following table lists the configurable parameters of the emqx chart and thei
| `image.repository` | EMQ X Image name |emqx/emqx|
| `image.pullPolicy` | The image pull policy |IfNotPresent|
| `image.pullSecrets ` | The image pull secrets |`[]` (does not add image pull secrets to deployed pods)|
| `envFromSecret` | The name pull a secret in the same kubernetes namespace which contains values that will be added to the environment | nil |
| `recreatePods` | Forces the recreation of pods during upgrades, which can be useful to always apply the most recent configuration. | false |
| `persistence.enabled` | Enable EMQX persistence using PVC |false|
| `persistence.storageClass` | Storage class of backing PVC |`nil` (uses alpha storage class annotation)|

View File

@ -114,6 +114,10 @@ spec:
envFrom:
- configMapRef:
name: {{ include "emqx.fullname" . }}-env
{{- if .Values.envFromSecret }}
- secretRef:
name: {{ .Values.envFromSecret }}
{{- end }}
env:
- name: EMQX_NAME
value: {{ .Release.Name }}

View File

@ -14,6 +14,13 @@ image:
# pullSecrets:
# - myRegistryKeySecretName
# The name of a secret in the same kubernetes namespace which contains values to
# be added to the environment (must be manually created)
# This can be useful for passwords and logins, etc.
# envFromSecret: "emqx-secrets"
## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
recreatePods: false