Skip to content

Commit

Permalink
Merge pull request #7 from Vicente-Cheng/update-deployment
Browse files Browse the repository at this point in the history
deploy: drop `management.cattle.io/scale-available`
  • Loading branch information
bk201 authored Sep 30, 2024
2 parents 854cf0c + f49658b commit 2a03cad
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 2a03cad

Please sign in to comment.