Skip to content

Commit

Permalink
fix: move annotations to proper place to trigger updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gertzakis committed Nov 28, 2024
1 parent 56700d3 commit 4bfe1e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions charts/nautobot/templates/celery-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if (or $celery.annotations $.Values.commonAnnotations) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $celery.annotations $.Values.commonAnnotations $config_checksum) "context" $ ) | nindent 4 }}
{{- else }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $config_checksum "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $celery.annotations $.Values.commonAnnotations) "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if not $celery.autoscaling.enabled }}
Expand All @@ -32,7 +30,9 @@ spec:
template:
metadata:
{{- if $celery.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" $celery.podAnnotations "context" $) | nindent 8 }}
annotations: {{- include "common.tplvalues.render" (dict "value" (merge $celery.podAnnotations $config_checksum) "context" $) | nindent 8 }}
{{- else }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $config_checksum "context" $ ) | nindent 8 }}
{{- end }}
labels: {{- include "common.labels.standard" $ | nindent 8 }}
app.kubernetes.io/component: nautobot-celery-{{ $celeryName }}
Expand Down
8 changes: 4 additions & 4 deletions charts/nautobot/templates/nautobot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ metadata:
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if (or $nautobot.annotations $.Values.commonAnnotations) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $nautobot.annotations $.Values.commonAnnotations $config_checksum) "context" $ ) | nindent 4 }}
{{- else }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $config_checksum "context" $ ) | nindent 4 }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $nautobot.annotations $.Values.commonAnnotations) "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if not $nautobot.autoscaling.enabled }}
Expand All @@ -32,7 +30,9 @@ spec:
template:
metadata:
{{- if $nautobot.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" $nautobot.podAnnotations "context" $) | nindent 8 }}
annotations: {{- include "common.tplvalues.render" (dict "value" (merge $nautobot.podAnnotations $config_checksum) "context" $) | nindent 8 }}
{{- else }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $config_checksum "context" $ ) | nindent 8 }}
{{- end }}
labels: {{- include "common.labels.standard" $ | nindent 8 }}
app.kubernetes.io/component: nautobot-{{ $nautobotName }}
Expand Down

0 comments on commit 4bfe1e5

Please sign in to comment.