From 5f6713a5dcb593f3930f6e974a4f3c1153fa799a Mon Sep 17 00:00:00 2001 From: Calum Murray Date: Thu, 4 Jul 2024 15:06:13 -0400 Subject: [PATCH] fix(test): creating the knsubscribe clusterrolebinding does not cause install script to fail (#8068) * fix(test) creating the knsusbcribe clusterrolebinding does not cause install script to fail Signed-off-by: Calum Murray * cleanup: fixed type in knative_setup Signed-off-by: Calum Murray --------- Signed-off-by: Calum Murray --- test/e2e-common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e-common.sh b/test/e2e-common.sh index 2b02dbbe31f..0716dd05c10 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -92,7 +92,7 @@ function knative_setup() { install_feature_cm || fail_test "Could not install features configmap" - create_knsubscribe_rolebinding || fail_test "Could not create knsusbcribe rolebinding" + create_knsubscribe_rolebinding || fail_test "Could not create knsubscribe rolebinding" } function scale_controlplane() { @@ -107,6 +107,7 @@ function scale_controlplane() { } function create_knsubscribe_rolebinding() { + kubectl delete clusterrolebinding knsubscribe-test-rb --ignore-not-found=true kubectl create clusterrolebinding knsubscribe-test-rb --user=$(kubectl auth whoami -ojson | jq .status.userInfo.username -r) --clusterrole=crossnamespace=subscriber }