matrix media repo: add option to define deployment labels and annotations
This commit is contained in:
parent
8467ca096c
commit
5ee5b671de
2 changed files with 16 additions and 0 deletions
|
@ -2,8 +2,16 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "matrix-media-repo.fullname" . }}
|
||||
{{- with .Values.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "matrix-media-repo.labels" . | nindent 4 }}
|
||||
{{- with .Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
|
|
|
@ -225,3 +225,11 @@ tolerations: []
|
|||
## Affinities to set on the application.
|
||||
##
|
||||
affinity: {}
|
||||
|
||||
## Deployment annotations
|
||||
##
|
||||
annotations: {}
|
||||
|
||||
## Deployment labels
|
||||
##
|
||||
labels: {}
|
Loading…
Reference in a new issue