Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.
/ kubectl-spy Public archive

Decode secrets from your kubernetes cluster so that they are human readable

License

Notifications You must be signed in to change notification settings

EricLemieux/kubectl-spy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-spy

kubectl plugin for reading values from secrets.

This project is meant as a teaching aid for a presentation about kubernetes client libraries. I would not recommend using this project in a real world scenario.

For a more feature complete tool I would probably use kubectl-view-secret, which can be installed using krew.

Requirements

  • linux or mac (BSD and windows might work, but I haven't tested it)
  • kubernetes cluster (I am using kind on linux, and docker desktop on mac)
  • kubectl setup and connected to your cluster
  • rust for building

Building

Building is handled by a makefile, by simply running make you can compile a binary.

make

This will output the binary to the bin folder, so for development testing you can run.

./bin/kubectl-spy my-secret-name

Usage

In order to install the binary, you can use the install make target, or simply copy the binary to anywhere within your $PATH.

make install
cp ./bin/kubectl-spy /some/custom/path/folder

Once it's within your $PATH kubectl will automatically find it as a plugin, and you can use it with.

kubectl spy my-secret-name

About

Decode secrets from your kubernetes cluster so that they are human readable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •