Skip to content

ljakimczuk/kubectl-secmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

kubectl-secmod

The vim-based Kubectl plugin for editing secrets.

The plugin is based on the Daniel Gray's menu.sh.

The plugin gets the given Secret's data, base64 decodes the selected one for a user to modify it and upon completion patch the Secret with the new value.

Installation

To install the SecMod plugin, execute the following command:

sudo curl -L https://github.com/ljakimczuk/kubectl-secmod/raw/master/bin/kubectl-secmod -o /usr/local/bin/kubectl-secmod
sudo chmod a+x /usr/local/bin/kubectl-secmod

Usage

In order to edit the secret pass its name and optionally a namespace to the plugin. Use -h option for help and examples:

Edit Kubernetes Secrets.

Examples:
  # Edit Secret in the current namespace.
  kubectl secmod secret123

  # Edit Secret in the given namespace.
  kubectl secmod -n namespace123 secret123

Usage:
  kubectl secmod
[-n <NAMESPACE> | -h]