JeffreyVdb / kube-secret-to-env

A tool to export a kubernetes secret to an environment variable file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

A tool to export a kubernetes secret to an environment variable file

License:MIT License


Languages

Language:Go 100.0%