jouve / charts

GNU General Public License v3.0
10 stars 16 forks source link

envfromsecret support #42

Closed koushyk closed 5 months ago

koushyk commented 5 months ago

It would be nice to have and option to set credential for smtp relay using secrets

jouve commented 5 months ago

something like this ?

spec:
  template:
    spec:
      containers:
        - ...
          {{- if .Values.extraEnvVarsSecret }}
          envFrom:
            {{- if .Values.extraEnvVarsSecret }}
            - secretRef:
                name: {{ .Values.extraEnvVarsSecret }}
            {{- end }}
          {{- end }}
koushyk commented 5 months ago

yep, if it is possible to configure smtp relay with env vars

jouve commented 5 months ago

you can now configure env var with extraEnvVars or extraEnvVarsSecret ( https://github.com/jouve/charts/pull/44 )

ref: https://mailpit.axllent.org/docs/configuration/smtp-relay/#setting-via-environment