Skip to content

Commit

Permalink
fix: sync extraVolumes and extraVolumeMounts with RHDH defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
  • Loading branch information
Fortune-Ndlovu committed Feb 6, 2025
1 parent 33145e8 commit de7d416
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions charts/backstage/ci/with-custom-dynamic-pvc-claim-spec-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ upstream:
storageClass: custom-sc

backstage:
# Define the ephemeral volume claim template directly
extraVolumeMounts:
# The initContainer below will install dynamic plugins in this volume mount.
- name: dynamic-plugins-root
mountPath: /opt/app-root/src/dynamic-plugins-root
extraVolumes:
# -- Ephemeral volume that will contain the dynamic plugins installed by the initContainer below at start.
- name: dynamic-plugins-root
ephemeral:
volumeClaimTemplate:
Expand All @@ -20,6 +24,28 @@ upstream:
- ReadWriteOnce
resources:
requests:
# -- Size of the volume that will contain the dynamic plugins. It should be large enough to contain all the plugins.
storage: 5Gi
# This custom-sc storage class is created in the test GH Workflow
storageClassName: custom-sc
# Volume that will expose the `dynamic-plugins.yaml` file from the `dynamic-plugins` config map.
# The `dynamic-plugins` config map is created by the helm chart from the content of the `global.dynamic` field.
- name: dynamic-plugins
configMap:
defaultMode: 420
name: '{{ printf "%s-dynamic-plugins" .Release.Name }}'
optional: true
# Optional volume that allows exposing the `.npmrc` file (through a `dynamic-plugins-npmrc` secret)
# to be used when running `npm pack` during the dynamic plugins installation by the initContainer.
- name: dynamic-plugins-npmrc
secret:
defaultMode: 420
optional: true
secretName: '{{ printf "%s-dynamic-plugins-npmrc" .Release.Name }}'
# Optional volume that allows adding a container registry `auth.json` file (through a `dynamic-plugins-registry-auth` secret)
# to be used when installing plugins from secure container registries during the dynamic plugins installation by the initContainer.
- name: dynamic-plugins-registry-auth
secret:
defaultMode: 416
optional: true
secretName: '{{ printf "%s-dynamic-plugins-registry-auth" .Release.Name }}'
- name: npmcacache
emptyDir: {}

0 comments on commit de7d416

Please sign in to comment.