From 4b877570bfe7ecc3dab3a9c3808966ee41091b37 Mon Sep 17 00:00:00 2001 From: Matthew Choppen <16226051+mcc138@users.noreply.github.com> Date: Mon, 7 Mar 2022 17:46:15 +0100 Subject: [PATCH] feat: add annotations to deployment and statefulset metadata (#44) --- charts/prosody/templates/statefulset.yaml | 4 ++++ templates/jibri/deployment.yaml | 4 ++++ templates/jicofo/deployment.yaml | 4 ++++ templates/jvb/deployment.yaml | 4 ++++ templates/web/deployment.yaml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/charts/prosody/templates/statefulset.yaml b/charts/prosody/templates/statefulset.yaml index ee4341a..dbd13db 100644 --- a/charts/prosody/templates/statefulset.yaml +++ b/charts/prosody/templates/statefulset.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "prosody.fullname" . }} labels: {{- include "prosody.labels" . | nindent 4 }} + {{- with .Values.annotations }} + annotations: + {{ toYaml . | nindent 4 }} + {{- end }} spec: serviceName: "prosody" replicas: 1 diff --git a/templates/jibri/deployment.yaml b/templates/jibri/deployment.yaml index e0a9c13..bb19052 100644 --- a/templates/jibri/deployment.yaml +++ b/templates/jibri/deployment.yaml @@ -5,6 +5,10 @@ metadata: name: {{ include "jitsi-meet.jibri.fullname" . }} labels: {{- include "jitsi-meet.jibri.labels" . | nindent 4 }} + {{- with .Values.jibri.annotations }} + annotations: + {{ toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.jibri.replicaCount | default 1 }} selector: diff --git a/templates/jicofo/deployment.yaml b/templates/jicofo/deployment.yaml index 106dc53..a0f8187 100644 --- a/templates/jicofo/deployment.yaml +++ b/templates/jicofo/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "jitsi-meet.jicofo.fullname" . }} labels: {{- include "jitsi-meet.jicofo.labels" . | nindent 4 }} + {{- with .Values.jicofo.annotations }} + annotations: + {{ toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.jicofo.replicaCount }} selector: diff --git a/templates/jvb/deployment.yaml b/templates/jvb/deployment.yaml index 61b1a41..7e41d96 100644 --- a/templates/jvb/deployment.yaml +++ b/templates/jvb/deployment.yaml @@ -5,6 +5,10 @@ metadata: name: {{ include "jitsi-meet.jvb.fullname" . }} labels: {{- include "jitsi-meet.jvb.labels" . | nindent 4 }} + {{- with .Values.jvb.annotations }} + annotations: + {{ toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.jvb.replicaCount }} selector: diff --git a/templates/web/deployment.yaml b/templates/web/deployment.yaml index 6b89031..2b9c4ae 100644 --- a/templates/web/deployment.yaml +++ b/templates/web/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "jitsi-meet.web.fullname" . }} labels: {{- include "jitsi-meet.web.labels" . | nindent 4 }} + {{- with .Values.web.annotations }} + annotations: + {{ toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.web.replicaCount }} selector: