From bb9108703c89819abc40ce49fc2a5199d952f111 Mon Sep 17 00:00:00 2001 From: David Festal Date: Thu, 28 Sep 2023 16:54:05 +0200 Subject: [PATCH] Support `.npmrc` when getting dynamic plugins Signed-off-by: David Festal --- charts/backstage/values.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/backstage/values.yaml b/charts/backstage/values.yaml index 01789e29..fbc6e7ca 100644 --- a/charts/backstage/values.yaml +++ b/charts/backstage/values.yaml @@ -59,12 +59,20 @@ upstream: defaultMode: 420 name: dynamic-plugins optional: true + - name: dynamic-plugins-npmrc + secret: + defaultMode: 420 + optional: true + secretName: dynamic-plugins-npmrc initContainers: - command: - python - install-dynamic-plugins.py - /dynamic-plugins-root image: quay.io/janus-idp/backstage-showcase:next + env: + - name: NPM_CONFIG_USERCONFIG + value: /opt/app-root/src/.npmrc.dynamic-plugins imagePullPolicy: Always name: install-dynamic-plugins volumeMounts: @@ -74,6 +82,10 @@ upstream: name: dynamic-plugins readOnly: true subPath: dynamic-plugins.yaml + - mountPath: /opt/app-root/src/.npmrc.dynamic-plugins + name: dynamic-plugins-npmrc + readOnly: true + subPath: .npmrc workingDir: /opt/app-root/src installDir: /opt/app-root/src podAnnotations: