Skip to content

Commit

Permalink
add .annotations to configure annotations on the Deployment's level
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar Filimonau committed Jan 26, 2024
1 parent 70fb3ed commit b1340cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ metadata:
namespace: {{ include "centrifugo.namespace" . }}
labels:
{{- include "centrifugo.labels" . | nindent 4 }}
{{- if .Values.annotations }}
{{- with .Values.annotations }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
Expand Down
1 change: 1 addition & 0 deletions charts/centrifugo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""
priorityClassName: ""
# Annotations to be added to the deployment
annotations: {}

service:
Expand Down

0 comments on commit b1340cc

Please sign in to comment.