feat: renovatebot #2

Merged
ange merged 24 commits from staging into prod 2024-12-23 02:44:15 +00:00
Showing only changes of commit bf464fb09c - Show all commits

View File

@ -19,15 +19,25 @@ function kcreatecm() {
function kgseckey() {
local sec="$1"; shift
local key="$1"; shift
local ret
kubectl get secret "$sec" -o jsonpath="{.data.$key}" | base64 -d
ret="$(kubectl get secret "$sec" -o jsonpath="{.data.$key}" | base64 -d)"
if [ "$?" -eq 0 ] || [ -z "$ret" ]; then
return 1
fi
echo "$ret"
}
function kgcmkey() {
local cm="$1"; shift
local key="$1"; shift
local ret;
kubectl get configmap "$cm" -o jsonpath="{.data.$key}"
ret="$(kubectl get configmap "$cm" -o jsonpath="{.data.$key}")"
if [ "$?" -eq 0 ] || [ -z "$ret" ]; then
return 1
fi
echo "$ret"
}