From b74857528bc08483ddef86069a96e1491d5e56d6 Mon Sep 17 00:00:00 2001 From: Ihar Filimonau Date: Fri, 26 Jan 2024 12:22:53 +0200 Subject: [PATCH] add .annotations to configure annotations of Deployment's level (#84) Co-authored-by: Ihar Filimonau --- charts/centrifugo/Chart.yaml | 2 +- charts/centrifugo/templates/deployment.yaml | 4 ++++ charts/centrifugo/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/centrifugo/Chart.yaml b/charts/centrifugo/Chart.yaml index fc68150..641891c 100644 --- a/charts/centrifugo/Chart.yaml +++ b/charts/centrifugo/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: centrifugo description: Centrifugo is a scalable real-time messaging server in language-agnostic way -version: 11.4.1 +version: 11.5.0 appVersion: 5.2.2 home: https://centrifugal.dev icon: https://centrifugal.dev/img/favicon.png diff --git a/charts/centrifugo/templates/deployment.yaml b/charts/centrifugo/templates/deployment.yaml index e37ebec..0012442 100644 --- a/charts/centrifugo/templates/deployment.yaml +++ b/charts/centrifugo/templates/deployment.yaml @@ -6,6 +6,10 @@ metadata: namespace: {{ include "centrifugo.namespace" . }} labels: {{- include "centrifugo.labels" . | nindent 4 }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/charts/centrifugo/values.yaml b/charts/centrifugo/values.yaml index 16cc7e7..5a78b1a 100644 --- a/charts/centrifugo/values.yaml +++ b/charts/centrifugo/values.yaml @@ -21,6 +21,8 @@ nameOverride: "" fullnameOverride: "" namespaceOverride: "" priorityClassName: "" +# Annotations to be added to the deployment +annotations: {} service: ## Service type