Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Support .npmrc when getting dynamic plugins
Browse files Browse the repository at this point in the history
Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal committed Oct 24, 2023
1 parent 0832446 commit bb91087
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit bb91087

Please sign in to comment.