From 68f47a9cfd3c308998e8d2d32e1efdc455bf3f7b Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 28 Aug 2024 18:03:34 +0100 Subject: [PATCH] rancher-turtles: enable uninstall after failure Workaround for https://github.com/rancher/turtles/issues/627 --- .../patch/templates/pre-delete-job.yaml.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/rancher-turtles/generated-changes/patch/templates/pre-delete-job.yaml.patch diff --git a/packages/rancher-turtles/generated-changes/patch/templates/pre-delete-job.yaml.patch b/packages/rancher-turtles/generated-changes/patch/templates/pre-delete-job.yaml.patch new file mode 100644 index 00000000..972843f8 --- /dev/null +++ b/packages/rancher-turtles/generated-changes/patch/templates/pre-delete-job.yaml.patch @@ -0,0 +1,13 @@ +--- charts-original/templates/pre-delete-job.yaml ++++ charts/templates/pre-delete-job.yaml +@@ -1,4 +1,5 @@ + {{- if index .Values "rancherTurtles" "features" "rancher-webhook" "cleanup" }} ++{{- if .Capabilities.APIVersions.Has "capiproviders.turtles-capi.cattle.io" }} + --- + apiVersion: v1 + kind: ServiceAccount +@@ -65,3 +66,4 @@ + - --cascade=foreground + restartPolicy: Never + {{- end }} ++{{- end }}