-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts: update lvm csi driver webhook related charts
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
- Loading branch information
1 parent
21c2d91
commit 4c6bd0e
Showing
6 changed files
with
209 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
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 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "harvester-csi-driver-lvm-webhook.labels" . | nindent 8 }} | ||
spec: | ||
serviceAccountName: harvester-csi-driver-lvm-webhook | ||
{{- if .Values.tolerations.webhook }} | ||
tolerations: | ||
{{ toYaml .Values.tolerations.webhook | indent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: harvester-csi-driver-lvm-webhook | ||
image: "{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }} | ||
env: | ||
- name: NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
command: | ||
- csi-driver-lvm-webhook | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: harvester-csi-driver-lvm-webhook | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
{{- include "harvester-csi-driver-lvm-webhook.selectorLabels" . | nindent 4 }} | ||
ports: | ||
- name: https | ||
port: 443 | ||
protocol: TCP | ||
targetPort: {{ .Values.webhook.httpsPort }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters