Created
April 14, 2022 19:59
-
-
Save irmiller22/abd9161b7aac73eb3d92c082c4e38981 to your computer and use it in GitHub Desktop.
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
# Set up kubectl aliases | |
if command -v kubectl 1>/dev/null 2>&1; then | |
eval "source <(kubectl completion bash)" | |
alias kgnsi='k config set-context --current --namespace=$(kg ns -o json | jq -r ".items[].metadata.name"| fzf)' | |
test -e "${HOME}/.kubectl_aliases" && source "${HOME}/.kubectl_aliases" | |
fi | |
# Check secrets resources | |
if command -v kubectl 1>/dev/null 2>&1; then | |
function kdecsec() { | |
kubectl get secret $1 -o jsonpath="{.data}" | jq '.[] |= @base64d' | |
} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment