From 0a94e701993667d701327c6f6f13049013d01b98 Mon Sep 17 00:00:00 2001 From: "jie.li" Date: Tue, 10 Jan 2023 16:26:01 +0800 Subject: [PATCH] update[storage-charts-repackage]: add storage-charts-repackage enableHA update Signed-off-by: jie.li --- charts/hwameistor/hwameistor/templates/storageclass.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/hwameistor/hwameistor/templates/storageclass.yaml b/charts/hwameistor/hwameistor/templates/storageclass.yaml index fbfc3c9..9de9180 100644 --- a/charts/hwameistor/hwameistor/templates/storageclass.yaml +++ b/charts/hwameistor/hwameistor/templates/storageclass.yaml @@ -13,7 +13,7 @@ volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: {{ $storageclass.allowVolumeExpansion }} reclaimPolicy: {{ $storageclass.reclaimPolicy }} parameters: - {{- if eq $storageclass.enableHA "true" }} + {{- if $storageclass.enableHA }} replicaNumber: "2" {{- else }} replicaNumber: "1"