Skip to content

Commit

Permalink
Rename deployment annotations var, allow deploy-specific annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
timetinytim authored and renchap committed Apr 21, 2023
1 parent 8f612ab commit 4b6fd9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/deployment-sidekiq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment-streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b6fd9f

Please sign in to comment.