Skip to content

Commit

Permalink
fix: restart deployments after creating resources (#764)
Browse files Browse the repository at this point in the history
* restart deployments after creating resources

Co-authored-by: Rajiv Senthilnathan <[email protected]>
  • Loading branch information
mfrancisc and rajivnathan authored Jul 21, 2023
1 parent b02e826 commit 7380fa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7380fa8

Please sign in to comment.