-
Notifications
You must be signed in to change notification settings - Fork 18
[WIP-DON'T MERGE YET] update pattern deletion logic #469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dminnear-rh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
83788a6 to
9aab6c0
Compare
|
/recheck |
|
/lgtm |
|
/recheck |
1 similar comment
|
/recheck |
9aab6c0 to
c04e182
Compare
|
New changes are detected. LGTM label has been removed. |
c04e182 to
8ff052c
Compare
this commit includes two key changes: 1. A sync with prune is triggered to remove all applications part of the pattern BEFORE the subscriptions and other resources are deleted to prevent applications from becoming undeleteable if CRs, webhooks, etc disappear. 2. Subscription for openshift-gitops is no longer owned by pattern instances. Previously, deleting a pattern would delete this subscription and a new subscription would not be able to be created on the reinstall of a pattern since the CSV still existed. The subscription is necessary since it sets the env var ARGOCD_CLUSTER_CONFIG_NAMESPACES to '*'. Without the subscription the ArgoCD instance created by the new pattern would be created in namespaced mode and many charts like vault will not install since they try to create clusterwide resources like clusterrolebindings
… to determine if sync is in progress during finalization of pattern
This is needed for the pattern operator to be able to fetch the resources from spoke clusters via open-cluster-management search-api.
Remove dead code bits, and return true only if there is actually managed clusters other than the local-cluster
Remove dead code bits, and return true only if there is actually managed clusters other than the local-cluster
Cleanup, add deletion phases to cover proper ordering
We only sync now with prune if its a must
ce76df7 to
9efac33
Compare
|
@dminnear-rh: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
this commit includes two key changes: