Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sources:
- https://github.com/appsmithorg/appsmith
home: https://www.appsmith.com/
icon: https://assets.appsmith.com/appsmith-icon.png
version: 3.6.8
version: 3.6.9
dependencies:
- condition: redis.enabled
name: redis
Expand Down
9 changes: 9 additions & 0 deletions deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ metadata:
namespace: {{ include "appsmith.namespace" . }}
labels:
{{- include "appsmith.labels" . | nindent 4 }}
{{- if or .Values.annotations .Values.commonAnnotations }}
annotations:
{{- if .Values.annotations }}
{{- include "tplvalues.render" (dict "value" .Values.annotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 4 }}
{{- end }}
{{- end }}
spec:
{{- if $useDeployment }}
{{- if not .Values.autoscaling.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: appsmith
appsmith.sh/chart: appsmith-3.6.8
appsmith.sh/chart: appsmith-3.6.9
name: RELEASE-NAME-appsmith
namespace: NAMESPACE
3: |
Expand All @@ -36,7 +36,7 @@
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: appsmith
appsmith.sh/chart: appsmith-3.6.8
appsmith.sh/chart: appsmith-3.6.9
name: RELEASE-NAME-appsmith
namespace: NAMESPACE
spec:
Expand Down Expand Up @@ -142,7 +142,7 @@
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: appsmith
appsmith.sh/chart: appsmith-3.6.8
appsmith.sh/chart: appsmith-3.6.9
name: RELEASE-NAME-appsmith-headless
namespace: NAMESPACE
spec:
Expand Down Expand Up @@ -181,7 +181,7 @@
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: appsmith
appsmith.sh/chart: appsmith-3.6.8
appsmith.sh/chart: appsmith-3.6.9
name: RELEASE-NAME-appsmith
namespace: NAMESPACE
spec:
Expand All @@ -202,7 +202,7 @@
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: appsmith
appsmith.sh/chart: appsmith-3.6.8
appsmith.sh/chart: appsmith-3.6.9
name: RELEASE-NAME-appsmith
namespace: NAMESPACE
secrets:
Expand Down
70 changes: 70 additions & 0 deletions deploy/helm/tests/annotations_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
templates:
- deployment.yaml
tests:
- name: no annotations on StatefulSet when none are set
asserts:
- isNull:
path: metadata.annotations

- name: annotations should be set on StatefulSet
set:
annotations:
reloader.stakater.com/auto: "true"
asserts:
- equal:
path: kind
value: StatefulSet
- isSubset:
path: metadata.annotations
content:
reloader.stakater.com/auto: "true"

- name: annotations should be set on Deployment
set:
workload:
kind: Deployment
annotations:
reloader.stakater.com/auto: "true"
asserts:
- equal:
path: kind
value: Deployment
- isSubset:
path: metadata.annotations
content:
reloader.stakater.com/auto: "true"

- name: commonAnnotations should be set on StatefulSet
set:
commonAnnotations:
example.com/team: platform
asserts:
- isSubset:
path: metadata.annotations
content:
example.com/team: platform

- name: annotations and commonAnnotations should merge
set:
annotations:
reloader.stakater.com/auto: "true"
commonAnnotations:
example.com/team: platform
asserts:
- isSubset:
path: metadata.annotations
content:
reloader.stakater.com/auto: "true"
example.com/team: platform

- name: multiple annotations should all be set
set:
annotations:
reloader.stakater.com/auto: "true"
app.kubernetes.io/managed-by: helm
asserts:
- isSubset:
path: metadata.annotations
content:
reloader.stakater.com/auto: "true"
app.kubernetes.io/managed-by: helm
4 changes: 4 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ serviceAccount:
##
annotations: {}

## @param annotations Annotations to add to the Deployment/StatefulSet resource
##
annotations: {}

podAnnotations: {}

podLabels: {}
Expand Down