Skip to content

Commit 3f3a618

Browse files
authored
Added support for extraContainers and initContainers (#28)
Signed-off-by: Andrew Block <andy.block@gmail.com> Signed-off-by: Andrew Block <andy.block@gmail.com>
1 parent 2ec8b04 commit 3f3a618

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

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.8.1
18+
version: 0.9.0
1919

2020
dependencies:
2121
- name: common

charts/backstage/README.md

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

22
# Backstage Helm Chart
33

4-
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.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

@@ -91,6 +91,7 @@ The command removes all the Kubernetes components associated with the chart and
9191
| backstage.containerPorts.backend | | int | `7007` |
9292
| backstage.containerSecurityContext | | object | `{}` |
9393
| backstage.extraAppConfig | | list | `[]` |
94+
| backstage.extraContainers | | list | `[]` |
9495
| backstage.extraEnvVars | | list | `[]` |
9596
| backstage.extraEnvVarsSecrets | | string | `nil` |
9697
| backstage.extraVolumeMounts | | list | `[]` |
@@ -101,6 +102,7 @@ The command removes all the Kubernetes components associated with the chart and
101102
| backstage.image.registry | | string | `"ghcr.io"` |
102103
| backstage.image.repository | | string | `"backstage/backstage"` |
103104
| backstage.image.tag | | string | `"latest"` |
105+
| backstage.initContainers | | list | `[]` |
104106
| backstage.podSecurityContext | | object | `{}` |
105107
| backstage.resources | resource requests/limits ref: https://kubernetes.io/docs/user-guide/compute-resources/ # E.g. # resources: # limits: # memory: 1Gi # cpu: 1000m # requests: # memory: 250Mi # cpu: 100m | object | `{}` |
106108
| clusterDomain | | string | `"cluster.local"` |

charts/backstage/templates/backstage-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ spec:
4949
- name: {{ . }}
5050
{{- end }}
5151
{{- end }}
52+
{{- if .Values.backstage.initContainers }}
53+
initContainers:
54+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.initContainers "context" $) | nindent 8 }}
55+
{{- end }}
5256
containers:
5357
- name: backstage-backend
5458
image: {{ include "backstage.image" . }}
@@ -121,3 +125,6 @@ spec:
121125
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumeMounts "context" $ ) | nindent 12 }}
122126
{{- end }}
123127
{{- end }}
128+
{{- if .Values.backstage.extraContainers }}
129+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraContainers "context" $) | nindent 8 }}
130+
{{- end }}

charts/backstage/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ backstage:
116116
command: ["node", "packages/backend"]
117117
args: []
118118
extraAppConfig: []
119+
extraContainers: []
119120
extraEnvVars: []
120121
extraEnvVarsSecrets:
121122
extraVolumeMounts: []
122123
extraVolumes: []
124+
initContainers: []
123125
# -- resource requests/limits
124126
# ref: https://kubernetes.io/docs/user-guide/compute-resources/
125127
## E.g.

0 commit comments

Comments
 (0)