Merge branch 'feature/matrix-media-repo-labels-annotations' into 'master'

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

See merge request ananace/charts!43
This commit is contained in:
Alexander Olofsson 2023-01-04 11:02:15 +00:00
commit aed7da6cf9
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: {}