From f49658bc4edfbf057bef58fdb9bf45568525fbf6 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Mon, 30 Sep 2024 10:21:37 +0800 Subject: [PATCH] deploy: drop `management.cattle.io/scale-available` - we would like to control the replica number ourself Signed-off-by: Vicente Cheng --- deploy/charts/templates/webhook.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/deploy/charts/templates/webhook.yaml b/deploy/charts/templates/webhook.yaml index 716cc4f0..f96191b2 100644 --- a/deploy/charts/templates/webhook.yaml +++ b/deploy/charts/templates/webhook.yaml @@ -5,17 +5,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "harvester-csi-driver-lvm-webhook.labels" . | nindent 4 }} - {{- if .Values.webhook.replicas }} - # The annotation does not support 0 replicas. - annotations: - management.cattle.io/scale-available: "{{ .Values.webhook.replicas }}" - {{- end }} name: harvester-csi-driver-lvm-webhook spec: - {{- if not .Values.webhook.replicas }} - # Use this field instead of the scale-available annotation when it is 0 replicas. replicas: {{ .Values.webhook.replicas }} - {{- end }} selector: matchLabels: {{- include "harvester-csi-driver-lvm-webhook.selectorLabels" . | nindent 6 }}