Skip to content

lbolla/kube-secret-editor

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Edit Kubernetes secrets

Installation:

$> pip install -r requirements.txt --user

Usage:

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

By default vi editor will be used, to use a different editor:

$> EDITOR=nano 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

I have a handy shell alias to use it:

alias kedit-secret="KUBE_EDITOR=kube-secret-editor kubectl edit secret"

About

Edit Kubernetes secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages