matrix media repo: add option to define deployment labels and annotations

This commit is contained in:
Joël Poyet 2023-01-03 17:04:04 +01:00
parent 8467ca096c
commit 5ee5b671de
2 changed files with 16 additions and 0 deletions

View file

@ -2,8 +2,16 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "matrix-media-repo.fullname" . }} name: {{ include "matrix-media-repo.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels: labels:
{{- include "matrix-media-repo.labels" . | nindent 4 }} {{- include "matrix-media-repo.labels" . | nindent 4 }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
{{- if not .Values.autoscaling.enabled }} {{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}

View file

@ -225,3 +225,11 @@ tolerations: []
## Affinities to set on the application. ## Affinities to set on the application.
## ##
affinity: {} affinity: {}
## Deployment annotations
##
annotations: {}
## Deployment labels
##
labels: {}