Skip to content

Commit c495e00

Browse files
Squashed sync of upstream Backstage chart
2 parents 2747d18 + e5ef2a9 commit c495e00

5 files changed

Lines changed: 4 additions & 120 deletions

File tree

charts/backstage/vendor/backstage/.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
password: ${{ secrets.GITHUB_TOKEN }}
4343

4444
- name: Install Cosign
45-
uses: sigstore/cosign-installer@ba7bc0a3fef59531c69a25acd34668d6d3fe6f22 #pin@v4.1.0
45+
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 #pin@v4.1.2
4646

4747
- name: Install Oras
4848
uses: oras-project/setup-oras@38de303aac69abb66f3e6255b7198bff35f323e3 # v2.0.0

charts/backstage/vendor/backstage/.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@
55
.idea
66

77
# helm chart dependencies
8-
charts/*/charts/*
8+
charts/*/charts/
99
**/charts/*.tgz
10-
11-
# RHDH: track vendored chart dependencies
12-
# Since this chart is vendored, we commit its dependencies rather than fetching them at install time
13-
!charts/*/charts/*.tgz
Binary file not shown.
Binary file not shown.

charts/backstage/vendor/backstage/charts/backstage/templates/backstage-deployment.yaml

Lines changed: 2 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
{{- $imageRepository := .Values.backstage.image.repository | required "The repository name of the image is required (e.g. my-backstage:tag | docker.io/my-backstage:tag) !" -}}
22
{{- $imageTag := .Values.backstage.image.tag | required "The image tag is required (e.g my-backstage:tag | docker.io/my-backstage:tag) !" -}}
33
{{- $installDir := .Values.backstage.installDir -}}
4-
{{- $lightspeed := include "rhdh.lightspeed" . | fromYaml -}}
5-
{{- $lightspeedRuntimeVolumeType := "" -}}
6-
{{- if $lightspeed.enabled -}}
7-
{{- $lightspeedRuntimeVolumeType = include "rhdh.lightspeed.runtimeVolumeType" (dict "volume" $lightspeed.runtimeVolume "path" "global.lightspeed.runtimeVolume") -}}
8-
{{- end -}}
9-
{{- $extraCatalogImages := include "rhdh.catalogIndex.extraImagesEnvValue" . | trim -}}
104
---
115
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
126
kind: Deployment
@@ -45,11 +39,6 @@ spec:
4539
{{- end }}
4640
annotations:
4741
checksum/app-config: {{ include "common.tplvalues.render" ( dict "value" .Values.backstage.appConfig "context" $) | sha256sum }}
48-
checksum/dynamic-plugins: {{ include "common.tplvalues.render" ( dict "value" (dict "dynamic" .Values.global.dynamic "lightspeed" (dict "enabled" $lightspeed.enabled "plugins" $lightspeed.plugins)) "context" $) | sha256sum }}
49-
{{- if $lightspeed.enabled }}
50-
checksum/lightspeed-configmaps: {{ include "rhdh.lightspeed.configMapsChecksum" (dict "context" $ "lightspeed" $lightspeed) | sha256sum }}
51-
checksum/lightspeed-secret: {{ include "rhdh.lightspeed.secretChecksum" (dict "context" $ "lightspeed" $lightspeed) | sha256sum }}
52-
{{- end }}
5342
{{- if .Values.backstage.podAnnotations }}
5443
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.podAnnotations "context" $ ) | nindent 8 }}
5544
{{- end }}
@@ -95,69 +84,10 @@ spec:
9584
configMap:
9685
name: {{ include "common.names.fullname" . }}-app-config
9786
{{- end }}
98-
{{- if $lightspeed.enabled }}
99-
- name: {{ $lightspeed.runtimeVolume.name }}
100-
{{- if eq $lightspeedRuntimeVolumeType "persistentVolumeClaim" }}
101-
persistentVolumeClaim:
102-
{{- include "common.tplvalues.render" ( dict "value" $lightspeed.runtimeVolume.persistentVolumeClaim "context" $ ) | nindent 12 }}
103-
{{- else }}
104-
emptyDir:
105-
{{- include "common.tplvalues.render" ( dict "value" $lightspeed.runtimeVolume.emptyDir "context" $ ) | nindent 12 }}
106-
{{- end }}
107-
- name: {{ $lightspeed.ragVolume.name }}
108-
emptyDir:
109-
{{- include "common.tplvalues.render" ( dict "value" $lightspeed.ragVolume.emptyDir "context" $ ) | nindent 12 }}
110-
{{- range $lightspeed.configMaps }}
111-
- name: {{ include "rhdh.lightspeed.configMapVolumeName" . }}
112-
configMap:
113-
name: {{ include "rhdh.lightspeed.configMapName" (dict "root" $ "configMap" .) }}
114-
optional: {{ default false .optional }}
115-
{{- end }}
116-
{{- end }}
11787
{{- include "backstage.renderImagePullSecrets" . | nindent 6 }}
118-
{{- if or .Values.backstage.initContainers $lightspeed.enabled }}
88+
{{- if .Values.backstage.initContainers }}
11989
initContainers:
120-
{{- if .Values.backstage.initContainers }}
121-
{{- range .Values.backstage.initContainers }}
122-
{{- $container := include "common.tplvalues.render" (dict "value" . "context" $) | fromYaml }}
123-
{{- if and $extraCatalogImages (eq (index $container "name") "install-dynamic-plugins") }}
124-
{{- $hasExisting := false }}
125-
{{- range (default list (index $container "env")) }}
126-
{{- if eq (default "" .name) "EXTRA_CATALOG_INDEX_IMAGES" }}{{ $hasExisting = true }}{{ end }}
127-
{{- end }}
128-
{{- if not $hasExisting }}
129-
{{- $_ := set $container "env" (append (default list (index $container "env")) (dict "name" "EXTRA_CATALOG_INDEX_IMAGES" "value" $extraCatalogImages)) }}
130-
{{- end }}
131-
{{- end }}
132-
- {{ $container | toYaml | nindent 10 | trim }}
133-
{{- end }}
134-
{{- end }}
135-
{{- if $lightspeed.enabled }}
136-
- name: {{ $lightspeed.initContainer.name }}
137-
image: {{ include "backstage.image.render" (dict "image" $lightspeed.initContainer.image "global" .Values.global) | quote }}
138-
imagePullPolicy: {{ $lightspeed.initContainer.imagePullPolicy | quote }}
139-
{{- if $lightspeed.initContainer.securityContext }}
140-
securityContext:
141-
{{- include "common.tplvalues.render" (dict "value" $lightspeed.initContainer.securityContext "context" $) | nindent 12 }}
142-
{{- end }}
143-
{{- if $lightspeed.initContainer.command }}
144-
command: {{- include "common.tplvalues.render" (dict "value" $lightspeed.initContainer.command "context" $) | nindent 12 }}
145-
{{- end }}
146-
{{- if $lightspeed.initContainer.args }}
147-
args: {{- include "common.tplvalues.render" (dict "value" $lightspeed.initContainer.args "context" $) | nindent 12 }}
148-
{{- end }}
149-
{{- if $lightspeed.initContainer.env }}
150-
env: {{- include "common.tplvalues.render" (dict "value" $lightspeed.initContainer.env "context" $) | nindent 12 }}
151-
{{- end }}
152-
{{- if $lightspeed.initContainer.resources }}
153-
resources: {{- include "common.tplvalues.render" (dict "value" $lightspeed.initContainer.resources "context" $) | nindent 12 }}
154-
{{- end }}
155-
volumeMounts:
156-
- name: {{ $lightspeed.runtimeVolume.name }}
157-
mountPath: {{ $lightspeed.runtimeVolume.mountPath | quote }}
158-
- name: {{ $lightspeed.ragVolume.name }}
159-
mountPath: {{ $lightspeed.ragVolume.initMountPath | quote }}
160-
{{- end }}
90+
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.initContainers "context" $) | nindent 8 }}
16191
{{- end }}
16292
containers:
16393
- name: backstage-backend
@@ -256,48 +186,6 @@ spec:
256186
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraVolumeMounts "context" $ ) | nindent 12 }}
257187
{{- end }}
258188
{{- end }}
259-
{{- if $lightspeed.enabled }}
260-
- name: {{ $lightspeed.sidecar.name }}
261-
image: {{ include "backstage.image.render" (dict "image" $lightspeed.sidecar.image "global" .Values.global) | quote }}
262-
imagePullPolicy: {{ $lightspeed.sidecar.imagePullPolicy | quote }}
263-
{{- if $lightspeed.sidecar.securityContext }}
264-
securityContext:
265-
{{- include "common.tplvalues.render" (dict "value" $lightspeed.sidecar.securityContext "context" $) | nindent 12 }}
266-
{{- end }}
267-
{{- if $lightspeed.sidecar.command }}
268-
command: {{- include "common.tplvalues.render" (dict "value" $lightspeed.sidecar.command "context" $) | nindent 12 }}
269-
{{- end }}
270-
{{- if $lightspeed.sidecar.args }}
271-
args: {{- include "common.tplvalues.render" (dict "value" $lightspeed.sidecar.args "context" $) | nindent 12 }}
272-
{{- end }}
273-
ports:
274-
- name: {{ $lightspeed.sidecar.portName }}
275-
containerPort: {{ $lightspeed.sidecar.containerPort }}
276-
protocol: TCP
277-
envFrom:
278-
- secretRef:
279-
name: {{ include "rhdh.lightspeed.secretName" (dict "context" $ "lightspeed" $lightspeed) }}
280-
optional: {{ default false $lightspeed.secret.optional }}
281-
{{- if $lightspeed.sidecar.env }}
282-
env: {{- include "common.tplvalues.render" (dict "value" $lightspeed.sidecar.env "context" $) | nindent 12 }}
283-
{{- end }}
284-
{{- if $lightspeed.sidecar.resources }}
285-
resources: {{- include "common.tplvalues.render" (dict "value" $lightspeed.sidecar.resources "context" $) | nindent 12 }}
286-
{{- end }}
287-
volumeMounts:
288-
- name: {{ $lightspeed.runtimeVolume.name }}
289-
mountPath: {{ $lightspeed.runtimeVolume.mountPath | quote }}
290-
- name: {{ $lightspeed.ragVolume.name }}
291-
mountPath: {{ $lightspeed.ragVolume.mountPath | quote }}
292-
{{- range $lightspeed.configMaps }}
293-
- name: {{ include "rhdh.lightspeed.configMapVolumeName" . }}
294-
mountPath: {{ .mountPath | quote }}
295-
{{- if .subPath }}
296-
subPath: {{ .subPath | quote }}
297-
{{- end }}
298-
readOnly: true
299-
{{- end }}
300-
{{- end }}
301189
{{- if .Values.backstage.extraContainers }}
302190
{{- include "common.tplvalues.render" ( dict "value" .Values.backstage.extraContainers "context" $) | nindent 8 }}
303191
{{- end }}

0 commit comments

Comments
 (0)