File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed
charts/rancher-turtles/templates Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,19 @@ jobs:
103103 - name : Wait for RKE2 control plane provider rollout
104104 run : sleep 30 && kubectl rollout status deployment rke2-control-plane-controller-manager -n rke2-control-plane-system --timeout=10m
105105
106+ - name : Wait for CAAPF provider rollout
107+ run : sleep 30 && kubectl rollout status deployment caapf-controller-manager -n rancher-turtles-system --timeout=10m
108+
106109 - name : Run chart-testing (un-install)
107110 run : helm uninstall rancher-turtles -n rancher-turtles-system --cascade foreground --wait --debug --timeout=10m
108111
112+ - name : Verify CAPIProvider CRs persist after uninstall
113+ run : |
114+ set -euo pipefail
115+ kubectl get capiprovider rke2-bootstrap -n rke2-bootstrap-system
116+ kubectl get capiprovider rke2-control-plane -n rke2-control-plane-system
117+ kubectl get capiprovider fleet -n rancher-turtles-system
118+
109119 - name : Run chart re-install
110120 run : helm install rancher-turtles out/charts/rancher-turtles/ -n rancher-turtles-system --create-namespace --wait --debug
111121
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ metadata:
66 annotations :
77 " helm.sh/hook " : " post-install, post-upgrade"
88 " helm.sh/hook-weight " : " 2"
9+ " helm.sh/resource-policy " : keep
910spec :
1011 enableAutomaticUpdate : true
1112 type : addon
@@ -21,6 +22,7 @@ metadata:
2122 annotations :
2223 " helm.sh/hook " : " post-install, post-upgrade"
2324 " helm.sh/hook-weight " : " 2"
25+ " helm.sh/resource-policy " : keep
2426data :
2527 manifests : |-
2628 apiVersion: addons.cluster.x-k8s.io/v1alpha1
Original file line number Diff line number Diff line change 5959 image : {{ index .Values "rancherTurtles" "kubectlImage" }}
6060 args :
6161 - delete
62- - capiproviders
63- - -A
64- - --all
62+ - capiprovider
63+ - cluster-api
64+ - -n
65+ - {{ index .Values "cluster-api-operator" "cluster-api" "core" "namespace" }}
66+ - --ignore-not-found=true
6567 - --cascade=foreground
6668 restartPolicy : Never
6769{{- end }}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ metadata:
88 annotations :
99 " helm.sh/hook " : " post-install, post-upgrade"
1010 " helm.sh/hook-weight " : " 1"
11+ " helm.sh/resource-policy " : keep
1112 name : {{ index .Values "cluster-api-operator" "cluster-api" "rke2" "bootstrap" "namespace" }}
1213{{- end }}
1314---
@@ -19,6 +20,7 @@ metadata:
1920 annotations :
2021 " helm.sh/hook " : " post-install, post-upgrade"
2122 " helm.sh/hook-weight " : " 2"
23+ " helm.sh/resource-policy " : keep
2224spec :
2325 name : rke2
2426 type : bootstrap
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ metadata:
88 annotations :
99 " helm.sh/hook " : " post-install, post-upgrade"
1010 " helm.sh/hook-weight " : " 1"
11+ " helm.sh/resource-policy " : keep
1112 name : {{ index .Values "cluster-api-operator" "cluster-api" "rke2" "controlPlane" "namespace" }}
1213{{- end }}
1314---
@@ -19,6 +20,7 @@ metadata:
1920 annotations :
2021 " helm.sh/hook " : " post-install, post-upgrade"
2122 " helm.sh/hook-weight " : " 2"
23+ " helm.sh/resource-policy " : keep
2224spec :
2325 name : rke2
2426 type : controlPlane
You can’t perform that action at this time.
0 commit comments