Skip to content

Conversation

@dminnear-rh
Copy link
Contributor

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

@openshift-ci openshift-ci bot requested review from darkdoc and mhjacks November 7, 2025 20:28
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 7, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mbaldessari
Copy link
Contributor

/recheck

@mbaldessari
Copy link
Contributor

/lgtm

@mbaldessari
Copy link
Contributor

/recheck

1 similar comment
@mbaldessari
Copy link
Contributor

/recheck

@dminnear-rh dminnear-rh changed the title update pattern deletion logic [WIP-DON'T MERGE YET] update pattern deletion logic Nov 25, 2025
@openshift-ci openshift-ci bot removed the lgtm label Nov 25, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 25, 2025

New changes are detected. LGTM label has been removed.

dminnear-rh and others added 13 commits January 12, 2026 22:13
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
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 2, 2026

@dminnear-rh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/self-test 9efac33 link true /test self-test

Full PR test history. Your PR dashboard.

Details

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants