Skip to content

TelluIoT/kubernetes-env-to-secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-env-to-secrets

Convert environment files to kubernetes secrets

usage: main.py [-h] [--name [name]] [--env [.env]] [--secrets [.yaml]]

Convert environment files to kubernetes secrets

optional arguments:
  -h, --help         show this help message and exit
  --name [name]      Name of the secret store
  --env [.env]       Environment input file, stdin by default
  --secrets [.yaml]  Secrets output file, stdout by default

Example:

$ cat .env
CANARD=true
LAPIN=12343
BONJOUR_LES_GENS=abcdef
# Can also embed file content
SECRET_FILE=filecontent=./secret_file
$ python main.py --env .env --name lapin
apiVersion: v1
kind: Secret
metadata:
  name: lapin
type: Opaque
data:
  canard: dHJ1ZQ==
  lapin: MTIzNDM=
  bonjour_les_gens: YWJjZGVm
  secret_file: aGVsbG8K

Releases

No releases published

Packages

No packages published

Languages