Skip to content

Commit

Permalink
add .annotations to configure annotations of Deployment's level (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: Ihar Filimonau <[email protected]>
  • Loading branch information
begemotik and Ihar Filimonau authored Jan 26, 2024
1 parent f47f7d7 commit b748575
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""
priorityClassName: ""
# Annotations to be added to the deployment
annotations: {}

service:
## Service type
Expand Down

0 comments on commit b748575

Please sign in to comment.