There is a PR for it https://github.com/jenkinsci/kubernetes-plugin/pull/162

On Thu, Aug 10, 2017 at 9:15 PM, YAN-HONG WANG <[email protected]>
wrote:

> Hi,
>
> In jenkins-kubernetes-plugin, is there any syntax that support using *Secrets
> as environment variables* in *containerTemplate*?
>
> I just saw something from here.
> https://kubernetes.io/docs/concepts/configuration/secret/
> #using-secrets-as-environment-variables
>
> So some syntax like "*secretKeyRef*" could be indicated in
> *containerTemplate?*
>
> apiVersion: v1kind: Podmetadata:
>   name: secret-env-podspec:
>   containers:
>     - name: mycontainer
>       image: redis
>       env:
>         - name: SECRET_USERNAME
>           valueFrom:
>             secretKeyRef:
>               name: mysecret
>               key: username
>         - name: SECRET_PASSWORD
>           valueFrom:
>             secretKeyRef:
>               name: mysecret
>               key: password
>   restartPolicy: Never
>
> Thanks.
>
> Best regards,
> Hong
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/a4be1cee-cfd4-48d8-a97e-fa5c30d95ce6%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/a4be1cee-cfd4-48d8-a97e-fa5c30d95ce6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6Mht9PHnX7WNFMranPz-J6VvPaQkrx8ci_pDBQ1dGQXcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to