#!/bin/bash if [[ "$#" -eq 2 ]]; then kubectl get secret $1 -n $2 -o jsonpath="{.data.}" | base64 --decode ; echo"" else echo "Missing: \$1 = secretname \$2 = namespace" fi