From d5f95c26d1cd57957a44c9d4648f1aa1fef563ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Kalbermatter?= Date: Mon, 10 Jun 2024 09:36:29 +0000 Subject: [PATCH] Update templates/deployment.yaml --- templates/deployment.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 679fa22..fb6f655 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -1,20 +1,23 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: { { include "stalwart-mail.fullname" . } } - labels: { { - include "stalwart-mail.labels" . | nindent 4 } } + name: {{ include "stalwart-mail.fullname" . }} + labels: + {{- include "stalwart-mail.labels" . | nindent 4 }} spec: - replicas: { { .Values.replicaCount } } + replicas: {{ .Values.replicaCount }} selector: - matchLabels: { { - include "stalwart-mail.selectorLabels" . | nindent 6 } } + matchLabels: + {{- include "stalwart-mail.selectorLabels" . | nindent 6 }} template: metadata: - labels: { { - include "stalwart-mail.selectorLabels" . | nindent 8 } } + labels: + {{- include "stalwart-mail.selectorLabels" . | nindent 8 }} spec: containers: - name: stalwart-mail - image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}' - imagePullPolicy: { { .Values.image.pullPolicy } } + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: 8080 - containerPort: 443 @@ -26,8 +29,8 @@ spec: - containerPort: 4190 volumeMounts: - name: stalwart-volume - mountPath: { { .Values.persistence.mountPath } } + mountPath: {{ .Values.persistence.mountPath }} volumes: - name: stalwart-volume persistentVolumeClaim: - claimName: { { include "stalwart-mail.fullname" . } } + claimName: {{ include "stalwart-mail.fullname" . }}