Skip to content

Commit

Permalink
cleanup cs-control
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ committed Dec 4, 2024
1 parent 2e27831 commit 7dbff69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cp3pt0-deployment/common/cleanup_cp2_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ function main() {

# cleanup namespaceScope in Control namespace
cleanup_NamespaceScope $CONTROL_NS
delete_operator "ibm-namespace-scope-operator" "$CONTROL_NS"

# cleanup webhookc
# cleanup webhook
cleanup_webhook $CONTROL_NS ""
cleanup_webhook_service $CONTROL_NS

# cleanup secretshare
cleanup_secretshare $CONTROL_NS ""
Expand Down
6 changes: 6 additions & 0 deletions cp3pt0-deployment/common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,12 @@ function cleanup_webhook() {

}

function cleanup_webhook_service() {
local control_ns=$1
info "Deleting ibm-common-service-webhook-service"
${OC} delete service ibm-common-service-webhook -n $control_ns --ignore-not-found
}

# Clean up secretshare deployment and CR in service_ns
function cleanup_secretshare() {
local control_ns=$1
Expand Down

0 comments on commit 7dbff69

Please sign in to comment.