Skip to content

Commit

Permalink
deploy: drop management.cattle.io/scale-available
Browse files Browse the repository at this point in the history
    - we would like to control the replica number ourself

Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng committed Sep 30, 2024
1 parent 854cf0c commit f49658b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions deploy/charts/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f49658b

Please sign in to comment.