Skip to content

Commit a32e865

Browse files
committed
Fix K8 username prefix to match ood_core behavior
1 parent f4f45ba commit a32e865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/k8s-bootstrap/set-k8s-creds.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
# shellcheck disable=SC1090
1515
source "$HOOK_ENV"
1616

17-
K8S_USERNAME="${K8S_USERNAME_PREFIX}${ONDEMAND_USERNAME}"
17+
K8S_USERNAME="${K8S_USERNAME_PREFIX}-${ONDEMAND_USERNAME}"
1818

1919
# we use pass ACCESS_TOKEN into the id-token arg. That's OK, it works and refreshes.
2020
sudo -u "$ONDEMAND_USERNAME" kubectl config set-credentials "$K8S_USERNAME" \

0 commit comments

Comments
 (0)