This file contains hidden or 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
#!/bin/bash | |
# secret name is the first | |
# namespace is optional second | |
# there is not much validation | |
secret_name="${1}" | |
ns="" | |
[[ $2 ]] && ns="-n ${2}" | |
secret_files=($(kubectl get secret ${secret_name} ${ns}\ |