machine_setup/ansible/roles/kubernetes/files/decrypt_k8s_secret
2022-12-01 23:38:21 -05:00

8 lines
178 B
Bash

#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
kubectl get secret -o json "${@}" | jq '.data[] |= @base64d | .data'