will be in 0.13 On Wed, Aug 16, 2017 at 2:54 PM, YAN-HONG WANG <[email protected]> wrote:
> Hello Carlos: > > Is method "*secretEnvVar*" already in *Kubernetes plugin 0.12*? Or that > will be released in nearly future *0.13*? > > Because I got the error message like this ... > > *java.lang.NoSuchMethodError: No such DSL method 'secretEnvVar' found among > steps * > > > Thanks very much. > > Best regards, > Hong > > Am Donnerstag, 10. August 2017 22:42:22 UTC+2 schrieb YAN-HONG WANG: >> >> @Carlos, Thanks!!! >> >> >> There is a PR for it https://github.com/jenkinsci/k >>> ubernetes-plugin/pull/162 >>> >>> >>> 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 view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/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 a topic in the >>> Google Groups "Jenkins Users" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>> pic/jenkinsci-users/vAZbO6gCgIY/unsubscribe. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/jenkinsci-users/CALHFn6Mht9PHnX7WNFMranPz-J6VvPaQkrx8ci_ >>> pDBQ1dGQXcA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6Mht9PHnX7WNFMranPz-J6VvPaQkrx8ci_pDBQ1dGQXcA%40mail.gmail.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/ff873744-f9c1-46df-a32d-6cbd36b2966f%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/ff873744-f9c1-46df-a32d-6cbd36b2966f%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/CALHFn6MDna-sEzUeE6quz9B6uujK5sNbH_UfUF7A%3DgRpdh0Xfg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
