Skip to content

Commit

Permalink
rancher-turtles: enable uninstall after failure
Browse files Browse the repository at this point in the history
Workaround for rancher/turtles#627
  • Loading branch information
hardys committed Aug 28, 2024
1 parent 353c78f commit 68f47a9
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 68f47a9

Please sign in to comment.