Skip to content

Order uninstall-ace.sh releases by dependsOn and keep Flux - #1379

Merged
ArnobKumarSaha merged 1 commit into
masterfrom
arnob-flux-ns
Oct 28, 2026
Merged

ArnobKumarSaha merged 1 commit into
masterfrom
arnob-flux-ns

Conversation

@ArnobKumarSaha

Copy link
Copy Markdown
Member
  • Delete HRs in reverse spec.dependsOn waves, so OCM addon managers go before the hub and kube-prometheus-stack before monitoring-operator; stash-presets waits for kubestash via an extra edge (its HR has no dependsOn).
  • Run the OCM hub teardown right before the cluster-manager-hub wave.
  • Select HRs by release-name annotation or the app.kubernetes.io/part-of label, so HRs created outside the charts (e.g. akp-crd-manager by b3) are removed.
  • Keep Flux: suspend and delete the flux2 HR, so helm-controller doesn't uninstall Flux while other HRs are still being torn down.
  • Detect the flux controllers' namespace instead of assuming flux-system.
  • Require kubectl, helm and jq up front.

- Delete HRs in reverse spec.dependsOn waves, so OCM addon managers go
  before the hub and kube-prometheus-stack before monitoring-operator;
  stash-presets waits for kubestash via an extra edge.
- Run the OCM hub teardown right before the cluster-manager-hub wave.
- Select HRs by release-name annotation or the part-of label, so HRs
  created outside the charts (e.g. akp-crd-manager by b3) are removed.
- Keep Flux: suspend and delete the flux2 HR without uninstalling it.
- Detect the flux controllers' namespace instead of assuming flux-system.
- Require kubectl, helm and jq up front.

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@ArnobKumarSaha
ArnobKumarSaha merged commit 5675b6f into master Oct 28, 2026
4 checks passed
@ArnobKumarSaha
ArnobKumarSaha deleted the arnob-flux-ns branch October 28, 2026 03:29
ArnobKumarSaha added a commit that referenced this pull request Oct 29, 2026
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant