From eb172f909d380243bf350611f51ed6626e3fe792 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 22 Aug 2023 12:17:02 +0000 Subject: [PATCH] Enable snapshotcontroller if any capable driver is enabled --- charts/kubezero/templates/storage.yaml | 3 ++- charts/kubezero/values.yaml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/kubezero/templates/storage.yaml b/charts/kubezero/templates/storage.yaml index 2415c87a..216cd16b 100644 --- a/charts/kubezero/templates/storage.yaml +++ b/charts/kubezero/templates/storage.yaml @@ -18,7 +18,8 @@ k8up: {{- end }} snapshotController: - enabled: {{ default false (index .Values "storage" "gemini" "enabled") }} + # install controller if any capable storage driver is enabled + enabled: {{ or (index .Values "storage" "lvm-localpv" "enabled") (index .Values "storage" "aws-ebs-csi-driver" "enabled")}} aws-ebs-csi-driver: enabled: {{ default false (index .Values "storage" "aws-ebs-csi-driver" "enabled")}} diff --git a/charts/kubezero/values.yaml b/charts/kubezero/values.yaml index 54756466..caf129e2 100644 --- a/charts/kubezero/values.yaml +++ b/charts/kubezero/values.yaml @@ -43,6 +43,8 @@ cert-manager: storage: enabled: false targetRevision: 0.8.3 + lvm-localpv: + enabled: false aws-ebs-csi-driver: enabled: false aws-efs-csi-driver: