3
0
mirror of https://github.com/mastodon/chart synced 2024-10-22 19:02:44 +00:00

Rename deployment annotations var, allow deploy-specific annotations

This commit is contained in:
Tim Campbell 2023-04-20 08:15:48 -07:00 committed by Renaud Chaput
parent 8f612abc72
commit 4b6fd9f7e6
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ metadata:
app.kubernetes.io/component: sidekiq-{{ .name }}
app.kubernetes.io/part-of: rails
annotations:
{{- with $context.Values.deployAnnotations }}
{{- with $context.Values.deploymentAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:

View File

@ -5,7 +5,7 @@ metadata:
labels:
{{- include "mastodon.labels" . | nindent 4 }}
annotations:
{{- with .Values.deployAnnotations }}
{{- with (default .Values.deploymentAnnotations .Values.mastodon.streaming.deploymentAnnotations) }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:

View File

@ -5,7 +5,7 @@ metadata:
labels:
{{- include "mastodon.labels" . | nindent 4 }}
annotations:
{{- with .Values.deployAnnotations }}
{{- with (default .Values.deploymentAnnotations .Values.mastodon.web.deploymentAnnotations) }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:

View File

@ -410,7 +410,7 @@ serviceAccount:
# Custom annotations to apply to all created deployment objects. These can be
# used to help mastodon interact with other services in the cluster.
deployAnnotations: {}
deploymentAnnotations: {}
# -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
# need to apply different annotations to the two different sets of pods. The annotations