You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pool_creds_secret=$(oc get clusterpool -n "$CLUSTERPOOL_NAMESPACE" "$CLUSTERPOOL_NAME" -o jsonpath="{$creds_secret_name_jsonpath}")
creds_data=$(oc get secret -n "$CLUSTERPOOL_NAMESPACE" "$pool_creds_secret" -o jsonpath={.data})
oc get cd -A -l "hive.openshift.io/clusterpool-namespace=$CLUSTERPOOL_NAMESPACE,hive.openshift.io/clusterpool-name=$CLUSTERPOOL_NAME" -o custom-columns=:.metadata.namespace,:.metadata.name --no-headers | while read ns name; do
echo -n "Refreshing creds for ClusterDeployment $ns/$name... "
cd_creds_secret=$(oc get cd -n $ns $name -o jsonpath="{$creds_secret_name_jsonpath}")
# TODO: Use a shm, named pipe, or tempfile so the creds don't show
# up in the process table in cleartext (b64). Not a risk when
# running locally. Generally not a risk when running in a pod, as
# that pod has permission to see the Secret anyway.