Skip to content

DTForce/kube-secret-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edit Kubernetes secrets

Usage:

$ KUBE_EDITOR=/path/to/kube-secret-editor.py kubectl edit secret my-secret

The script will:

  • decode the secret values coming from k8s
  • call $EDITOR
  • encode the values back

Setup a kubectl plugin

Edit kubectl-edit_secret file and set _DIR_ to a directory, where you put the python script.

Copy the file to /usr/local/bin:

# cp kubectl-edit_secret /usr/local/bin

Now you can run

$ kubectl edit-secret my-secret

About

Edit Kubernetes secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.6%
  • Shell 3.4%