From eaa914ce5b926fbbb7ac0906f35f1b5107ef794a Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Sat, 11 Jan 2025 17:36:12 +0800 Subject: [PATCH] bash: add helper func for k8s secrets --- .bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bashrc b/.bashrc index a4643b2..8be93b9 100644 --- a/.bashrc +++ b/.bashrc @@ -59,6 +59,10 @@ sleepto() { sleep $(($(date --date="$1" +%s) - $EPOCHSECONDS)) } +desecret() { + yq '.data |= (to_entries | map(.value |= @base64d) | from_entries)' +} + # application envs export GPG_TTY=$(tty 2>/dev/null) -- 2.45.2