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
This commit is contained in:
Vincent Ambo 2017-02-09 15:33:03 +01:00
parent 4713d565d3
commit 2f6e008121
3 changed files with 40 additions and 0 deletions

View file

@ -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: