-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
[![Twitter](https://img.shields.io/badge/[email protected])](http://twitter.com/elsesiy) | ||
[![GitHub release](https://img.shields.io/github/release/elsesiy/kubectl-view-secret.svg)](https://github.com/elsesiy/kubectl-view-secret/releases) | ||
|
||
<img width="600" src="./media/view-secret.gif" /> | ||
|
||
This plugin allows for easy secret decoding. Useful if you want to see what's inside of a secret without always go through the following: | ||
|
||
1. `kubectl get secret <secret> -o yaml` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
Output media/view-secret.gif | ||
Set Theme "Catppuccin Mocha" | ||
Set CursorBlink false | ||
Set Width 1400 | ||
|
||
Hide | ||
Type "# Secrets in current namespace" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl get secret" | ||
Enter | ||
Sleep 2 | ||
Down | ||
Sleep 1 | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# Showing all secrets in current namespace with interactive selection" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl view-secret" | ||
Enter | ||
Sleep 2 | ||
Down | ||
Sleep 1 | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# View 'test' secret in current namespace with interactive selection for a single key" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl view-secret test" | ||
Enter | ||
Sleep 1 | ||
Type "/key2" | ||
Sleep 1 | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# View 'test' secret in current namespace and show all keys" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl view-secret test -a" | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# View 'test2' secret in current namespace immediately shows the secret contents (only one key exists)" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl view-secret test2" | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# Secrets in 'another' namespace" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl get secret -n another" | ||
Enter | ||
Sleep 2 | ||
Down | ||
Sleep 1 | ||
Enter | ||
Sleep 1 | ||
Type "clear" | ||
Enter | ||
|
||
Hide | ||
Type "# View 'gopher' secret in 'another' namespace and silence info about single key" | ||
Enter 2 | ||
Show | ||
Sleep 2 | ||
Type "kubectl view-secret gopher -n another -q" | ||
Enter | ||
|
||
Sleep 5 |