command
module
Version:
v0.0.0-...-b02b206
Opens a new window with list of versions in this module.
Published: May 6, 2018
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
kube-secret-to-env
A tool to export a kubernetes secret to an environment variable file
Installing
go get github.com/JeffreyVdb/kube-secret-to-env
Examples
In dotenv style output:
kubectl get secrets api-secrets -o json | kube-secret-to-env -type env
3RD_PARTY_SERVICE_USER=admin
3RD_PARTY_SERVICE_PASSWORD=secure_password
In shell output:
kubectl get secrets api-secrets -o json | kube-secret-to-env -type shell
export 3RD_PARTY_SERVICE_USER="admin"
export 3RD_PARTY_SERVICE_PASSWORD="secure_password"
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.