Skip to content

Commit

Permalink
add vhs to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
elsesiy committed Aug 14, 2024
1 parent bd29a63 commit 3c27217
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Binary file added media/view-secret.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
96 changes: 96 additions & 0 deletions media/view-secret.tape
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

0 comments on commit 3c27217

Please sign in to comment.