diff --git a/templates/api-deployment.yaml b/templates/api-deployment.yaml index c4ffeda..18e9364 100644 --- a/templates/api-deployment.yaml +++ b/templates/api-deployment.yaml @@ -15,10 +15,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-api + {{- range $key, $value := .Values.api.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.api.podAnnotations }} + {{- range $key, $value := .Values.api.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: initContainers: {{ if .Values.postgresql.enabled }} diff --git a/templates/clock-deployment.yaml b/templates/clock-deployment.yaml index 3fd04fc..80ab728 100644 --- a/templates/clock-deployment.yaml +++ b/templates/clock-deployment.yaml @@ -15,10 +15,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-clock + {{- range $key, $value := .Values.clock.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.clock.podAnnotations }} + {{- range $key, $value := .Values.clock.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: initContainers: {{ if .Values.redis.enabled }} diff --git a/templates/events-worker-deployment.yaml b/templates/events-worker-deployment.yaml index a6c3d5e..9f6ad59 100644 --- a/templates/events-worker-deployment.yaml +++ b/templates/events-worker-deployment.yaml @@ -15,10 +15,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-events-worker + {{- range $key, $value := .Values.eventsWorker.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.eventsWorker.podAnnotations }} + {{- range $key, $value := .Values.eventsWorker.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: initContainers: {{ if .Values.redis.enabled }} diff --git a/templates/front-deployment.yaml b/templates/front-deployment.yaml index a6c518d..57e0e51 100644 --- a/templates/front-deployment.yaml +++ b/templates/front-deployment.yaml @@ -13,10 +13,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-front + {{- range $key, $value := .Values.front.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.front.podAnnotations }} + {{- range $key, $value := .Values.front.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: containers: - env: diff --git a/templates/migrate-job.yaml b/templates/migrate-job.yaml index 6a2eae0..a0d5077 100644 --- a/templates/migrate-job.yaml +++ b/templates/migrate-job.yaml @@ -12,6 +12,13 @@ spec: app.kubernetes.io/managed-by: {{ .Release.Service | quote }} app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" + {{- range $key, $value := .Values.job.migrate.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + annotations: + {{- range $key, $value := .Values.job.migrate.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} spec: restartPolicy: Never initContainers: diff --git a/templates/pdf-deployment.yaml b/templates/pdf-deployment.yaml index 504b69a..e83cc0c 100644 --- a/templates/pdf-deployment.yaml +++ b/templates/pdf-deployment.yaml @@ -13,10 +13,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-pdf + {{- range $key, $value := .Values.pdf.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.pdf.podAnnotations }} + {{- range $key, $value := .Values.pdf.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: containers: - image: getlago/lago-gotenberg:7.8.2 diff --git a/templates/worker-deployment.yaml b/templates/worker-deployment.yaml index 2def3d4..2598fb7 100644 --- a/templates/worker-deployment.yaml +++ b/templates/worker-deployment.yaml @@ -15,10 +15,13 @@ spec: metadata: labels: io.lago.service: {{ .Release.Name }}-worker + {{- range $key, $value := .Values.worker.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} annotations: - {{ range $key, $value := .Values.worker.podAnnotations }} + {{- range $key, $value := .Values.worker.podAnnotations }} {{ $key }}: {{ $value | quote }} - {{ end }} + {{- end }} spec: initContainers: {{ if .Values.redis.enabled }} diff --git a/values.yaml b/values.yaml index 2f1ad9b..0b23dac 100644 --- a/values.yaml +++ b/values.yaml @@ -84,7 +84,7 @@ global: #className: #serviceAccountName: - + # If kubectlVersion is not supplied it will be inferred using the version of the cluster that Lago is deployed on. #kubectlVersion: 1.29 @@ -95,7 +95,8 @@ front: resources: memory: 512 cpu: "200m" - # podAnnotations: + podAnnotations: {} + podLabels: {} api: replicas: 1 @@ -114,7 +115,8 @@ api: cpu: "1000m" volumes: storage: "10Gi" - # podAnnotations: + podAnnotations: {} + podLabels: {} worker: replicas: 1 @@ -126,7 +128,8 @@ worker: resources: memory: 1024 cpu: "1000m" - # podAnnotations: + podAnnotations: {} + podLabels: {} eventsWorker: replicas: 1 @@ -138,7 +141,8 @@ eventsWorker: resources: memory: 1024 cpu: "1000m" - # podAnnotations: + podAnnotations: {} + podLabels: {} clock: replicas: 1 @@ -149,7 +153,8 @@ clock: resources: memory: 256 cpu: "100m" - # podAnnotations: + podAnnotations: {} + podLabels: {} pdf: replicas: 1 @@ -158,4 +163,10 @@ pdf: resources: memory: 2048 cpu: "1000m" - # podAnnotations + podAnnotations: {} + podLabels: {} + +job: + migrate: + podAnnotations: {} + podLabels: {}