Skip to content

kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding

License

Notifications You must be signed in to change notification settings

jarojasm95/kubectl-modify-secret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-modify-secret

kubectl-modify-secret is a kubectl plugin that allows user to modify the secret without having to worry about doing base64 encoding/decoding.

This plugin pulls the secret from Kubernetes, and open the configured editor with just the decoded secret data. Once user makes changes, save and quit the editor, the plugin automatically apply the updated data to Kubernetes.

using kubectl-modify-secret plugin

Installing

  • install krew using instructions here
  • run kubectl krew update
  • run kubectl krew install modify-secret

installing kubectl-modify-secret plugin

Usage

  • use namespace and kubeconfig from $KUBECONFIG current context
    kubectl modify-secret xyz
  • provide namespace explicitly
    kubectl modify-secret xyz -n kube-system
  • use different kubeconfig file
    kubectl modify-secret xyz --kubeconfig /path/to/different/kube/config

About

kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.4%
  • Shell 9.6%