Skip to content

Commit 111933e

Browse files
authored
fix: Add pod labels (#111)
Signed-off-by: Juha Tiensyrjä <[email protected]>
1 parent f809b37 commit 111933e

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ sources:
3838
# This is the chart version. This version number should be incremented each time you make changes
3939
# to the chart and its templates, including the app version.
4040
# Versions are expected to follow Semantic Versioning (https://semver.org/)
41-
version: 1.1.2
41+
version: 1.1.3

charts/backstage/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Backstage Helm Chart
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/backstage)](https://artifacthub.io/packages/search?repo=backstage)
5-
![Version: 1.1.2](https://img.shields.io/badge/Version-1.1.2-informational?style=flat-square)
5+
![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying a Backstage application
@@ -137,6 +137,7 @@ Kubernetes: `>= 1.19.0-0`
137137
| backstage.livenessProbe | Liveness Probe Backstage doesn't provide any health endpoints by default. A simple one can be added like this: https://backstage.io/docs/plugins/observability/#health-checks <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes <!-- E.g. livenessProbe: failureThreshold: 3 httpGet: path: /healthcheck port: 7007 scheme: HTTP initialDelaySeconds: 60 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 2 | object | `{}` |
138138
| backstage.nodeSelector | Node labels for pod assignment <br /> Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector | object | `{}` |
139139
| backstage.podAnnotations | Annotations to add to the backend deployment pods | object | `{}` |
140+
| backstage.podLabels | Labels to add to the backend deployment pods | object | `{}` |
140141
| 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 | `{}` |
141142
| backstage.readinessProbe | Readiness Probe Backstage doesn't provide any health endpoints by default. A simple one can be added like this: https://backstage.io/docs/plugins/observability/#health-checks <br /> Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes <!-- E.g. readinessProbe: failureThreshold: 3 httpGet: path: /healthcheck port: 7007 scheme: HTTP initialDelaySeconds: 30 periodSeconds: 10 successThreshold: 2 timeoutSeconds: 2 | object | `{}` |
142143
| backstage.replicas | Number of deployment replicas | int | `1` |

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ spec:
2828
metadata:
2929
labels: {{- include "common.labels.standard" . | nindent 8 }}
3030
app.kubernetes.io/component: backstage
31+
{{- if .Values.backstage.podLabels }}
32+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.podLabels "context" $ ) | nindent 8 }}
33+
{{- end }}
3134
annotations:
3235
checksum/app-config: {{ include "common.tplvalues.render" ( dict "value" .Values.backstage.appConfig "context" $) | sha256sum }}
3336
{{- if .Values.backstage.podAnnotations }}

charts/backstage/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@
455455
},
456456
"default": {}
457457
},
458+
"podLabels": {
459+
"title": "Labels to add to the backend deployment pods",
460+
"type": "object",
461+
"additionalProperties": {
462+
"type": "string"
463+
},
464+
"default": {}
465+
},
458466
"annotations": {
459467
"title": "Additional custom annotations for the `Deployment` resource",
460468
"type": "object",

charts/backstage/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ backstage:
220220
# -- Annotations to add to the backend deployment pods
221221
podAnnotations: {}
222222

223+
# -- Labels to add to the backend deployment pods
224+
podLabels: {}
225+
223226
# -- Additional custom annotations for the `Deployment` resource
224227
annotations: {}
225228

0 commit comments

Comments
 (0)