From b54cc52699df0737589fdb9b71a9b75811a14b86 Mon Sep 17 00:00:00 2001 From: Danil-Grigorev Date: Fri, 30 Aug 2024 08:49:58 +0200 Subject: [PATCH] Add option to skip rancher pre-requisites Signed-off-by: Danil-Grigorev --- charts/rancher-turtles/templates/pre-install-job.yaml | 2 ++ charts/rancher-turtles/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/rancher-turtles/templates/pre-install-job.yaml b/charts/rancher-turtles/templates/pre-install-job.yaml index 3253f4c1..c01ba235 100644 --- a/charts/rancher-turtles/templates/pre-install-job.yaml +++ b/charts/rancher-turtles/templates/pre-install-job.yaml @@ -1,4 +1,5 @@ {{- if index .Values "rancherTurtles" "features" "embedded-capi" "disabled" }} +{{- if index .Values "rancherTurtles" "rancherInstalled"}} --- apiVersion: management.cattle.io/v3 kind: Feature @@ -10,6 +11,7 @@ metadata: spec: value: false {{- end }} +{{- end }} {{- if index .Values "rancherTurtles" "features" "rancher-webhook" "cleanup" }} --- apiVersion: v1 diff --git a/charts/rancher-turtles/values.yaml b/charts/rancher-turtles/values.yaml index cecf1b10..b5ca6a93 100644 --- a/charts/rancher-turtles/values.yaml +++ b/charts/rancher-turtles/values.yaml @@ -5,6 +5,7 @@ rancherTurtles: namespace: rancher-turtles-system managerArguments: [] imagePullSecrets: [] + rancherInstalled: true features: cluster-api-operator: cleanup: true