From 7380fa8c5678f224fae398799cfdf7dd00e5035c Mon Sep 17 00:00:00 2001 From: Francisc Munteanu Date: Fri, 21 Jul 2023 10:33:46 +0200 Subject: [PATCH] fix: restart deployments after creating resources (#764) * restart deployments after creating resources Co-authored-by: Rajiv Senthilnathan --- make/test.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/test.mk b/make/test.mk index 43577c2d4..75b02628c 100644 --- a/make/test.mk +++ b/make/test.mk @@ -347,6 +347,8 @@ create-host-resources: echo "{\"spec\":{\"members\":{\"specificPerMemberCluster\":{\"$${TOOLCHAIN_CLUSTER_NAME}\":{\"webhook\":{\"deploy\":false},\"webConsolePlugin\":{\"deploy\":true},\"environment\":\"${ENVIRONMENT}\"}}}}}" > $$PATCH_FILE; \ oc patch toolchainconfig config -n ${HOST_NS} --type=merge --patch "$$(cat $$PATCH_FILE)"; \ fi; + echo "Restart host operator pods so that configuration referenced in main.go can get the updated ToolchainConfig CRs at startup" + oc delete pods --namespace ${HOST_NS} -l control-plane=controller-manager ifneq ($(E2E_TEST_EXECUTION),true) # if it's not part of e2e test execution, then delete registration-service pods in case they already exist so that the ToolchainConfig will be reloaded oc delete pods --namespace ${HOST_NS} -l name=registration-service || true