Skip to content

Commit 75f1520

Browse files
authored
feat: allow setting podAnnotations (#54)
1 parent 52a9c3a commit 75f1520

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.14.0
18+
version: 0.15.0
1919

2020
dependencies:
2121
- name: common

charts/backstage/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Backstage Helm Chart
33

4-
![Version: 0.14.0](https://img.shields.io/badge/Version-0.14.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.15.0](https://img.shields.io/badge/Version-0.15.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
55

66
A Helm chart for deploying a Backstage application
77

@@ -104,6 +104,7 @@ The command removes all the Kubernetes components associated with the chart and
104104
| backstage.image.repository | Backstage image repository | string | `"backstage/backstage"` |
105105
| backstage.image.tag | Backstage image tag (immutable tags are recommended) | string | `"latest"` |
106106
| backstage.initContainers | Backstage container init containers | list | `[]` |
107+
| backstage.podAnnotations | Annotations to add to the backend deployment pods | object | `{}` |
107108
| backstage.podSecurityContext | Security settings for a Pod. The security settings that you specify for a Pod apply to all Containers in the Pod. <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod | object | `{}` |
108109
| backstage.resources | Resource requests/limits <br /> Ref: https://kubernetes.io/docs/user-guide/compute-resources/ <!-- E.g. resources: limits: memory: 1Gi cpu: 1000m requests: memory: 250Mi cpu: 100m --> | object | `{}` |
109110
| backstage.tolerations | Node tolerations for server scheduling to nodes with taints <br /> Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | list | `[]` |

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ spec:
2626
app.kubernetes.io/component: backstage
2727
annotations:
2828
checksum/app-config: {{ include "common.tplvalues.render" ( dict "value" .Values.backstage.appConfig "context" $) | sha256sum }}
29+
{{- if .Values.backstage.podAnnotations }}
30+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.podAnnotations "context" $ ) | nindent 8 }}
31+
{{- end }}
2932
spec:
3033
serviceAccountName: {{ include "backstage.serviceAccountName" . }}
3134
{{- if .Values.backstage.podSecurityContext }}

charts/backstage/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ backstage:
174174
# value: "value"
175175
# effect: "NoSchedule|PreferNoSchedule|NoExecute"
176176

177+
# -- Annotations to add to the backend deployment pods
178+
podAnnotations: {}
179+
177180
## @section Traffic Exposure parameters
178181

179182
## Service parameters

0 commit comments

Comments
 (0)