kube-secret-to-env

command module
v0.0.0-...-b02b206 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2018 License: MIT Imports: 7 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL