Skip to content

Commit b55b722

Browse files
wyattwalterclaude
andcommitted
feat: support annotations on Deployment/StatefulSet in Helm chart
Add a top-level `annotations` value that gets applied to the main Appsmith Deployment or StatefulSet metadata. This enables use cases like Stakater Reloader (`reloader.stakater.com/auto: "true"`) and other annotations that must live on the workload resource itself rather than on pods. Also wires up `commonAnnotations` to the workload resource, which was previously missing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 65e0b58 commit b55b722

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

deploy/helm/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ metadata:
1111
namespace: {{ include "appsmith.namespace" . }}
1212
labels:
1313
{{- include "appsmith.labels" . | nindent 4 }}
14+
{{- if or .Values.annotations .Values.commonAnnotations }}
15+
annotations:
16+
{{- if .Values.annotations }}
17+
{{- include "tplvalues.render" (dict "value" .Values.annotations "context" $) | nindent 4 }}
18+
{{- end }}
19+
{{- if .Values.commonAnnotations }}
20+
{{- include "tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
21+
{{- end }}
22+
{{- end }}
1423
spec:
1524
{{- if $useDeployment }}
1625
{{- if not .Values.autoscaling.enabled }}

deploy/helm/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ serviceAccount:
146146
##
147147
annotations: {}
148148

149+
## @param annotations Annotations to add to the Deployment/StatefulSet resource
150+
##
151+
annotations: {}
152+
149153
podAnnotations: {}
150154

151155
podLabels: {}

0 commit comments

Comments
 (0)