IBM / ibm-common-service-operator

Operator to install IBM Common Services
https://www.ibm.com/support/knowledgecenter/SSHKN6/kc_welcome_cs.html
Apache License 2.0
19 stars 67 forks source link

enhancement on cp2 resources cleanup #2088

Closed qpdpQ closed 1 month ago

qpdpQ commented 1 month ago

What this PR does / why we need it: enhancement on cp2 control namespace cleanup

case1: all namespace cleanup

in this case, we cleanup podpresets CR and secretshare CR in all namespaces

case2: tenant namespace cleanup

in this case, we cleanup podpresets CR and secretshare CR in tenant namespaces

case3: edge case(in rerun we not found namespace-scope cm)

in this case, since namespace-scope cm is empty it means there is only one cs-operator in the cluster, so it is safe to cleanup podpresets CR and secretshare CR in all namespace

Which issue(s) this PR fixes: Fixes # https://github.ibm.com/IBMPrivateCloud/roadmap/issues/64063

ibm-ci-bot commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Daniel-Fan, qpdpQ

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/IBM/ibm-common-service-operator/blob/scripts-dev/OWNERS)~~ [Daniel-Fan,qpdpQ] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment