diff options
author | Vincent Ambo <tazjin@gmail.com> | 2017-02-09T14·33+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2017-02-09T14·44+0100 |
commit | 2f6e0081214b4033132725065014c5022b997c92 (patch) | |
tree | 8d4262730a91534141f00b258b2d32ec4ad68e93 /example | |
parent | 4713d565d344d123409dac389c327478b097766a (diff) |
feat templater: Add 'pass' lookup function
This introduces support for looking up secret values in the 'pass' command line tool (https://www.passwordstore.org/). Values like passwords can be interpolated from pass and even more complex structures like certificates for Kubernetes Secrets can be retrieved and base64- encoded as necessary. Fixes #2
Diffstat (limited to 'example')
-rw-r--r-- | example/some-api/some-api.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/some-api/some-api.yaml b/example/some-api/some-api.yaml index 6f6a29a1599a..57ab7c65275d 100644 --- a/example/some-api/some-api.yaml +++ b/example/some-api/some-api.yaml @@ -1,4 +1,11 @@ --- +apiVersion: v1 +kind: Secret +metadata: + name: secret-certificate +data: + cert.pem: {{ passLookup "my/secret/certificate" | b64enc }} +--- apiVersion: extensions/v1beta1 kind: Deployment metadata: |