Skip to content

Commit

Permalink
Add volumeMount for dynamic-plugins-registry-auth (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
durandom authored Aug 28, 2024
1 parent 507daf6 commit 0de96b2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.18.0
version: 2.19.0
2 changes: 1 addition & 1 deletion charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# RHDH Backstage Helm Chart for OpenShift (Community Version)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rhdh-chart&style=flat-square)](https://artifacthub.io/packages/search?repo=rhdh-chart)
![Version: 2.18.0](https://img.shields.io/badge/Version-2.18.0-informational?style=flat-square)
![Version: 2.19.0](https://img.shields.io/badge/Version-2.19.0-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying Red Hat Developer Hub.
Expand Down
13 changes: 13 additions & 0 deletions charts/backstage/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2603,6 +2603,14 @@
"secretName": "{{ printf \"%s-dynamic-plugins-npmrc\" .Release.Name }}"
}
},
{
"name": "dynamic-plugins-registry-auth",
"secret": {
"defaultMode": 416,
"optional": true,
"secretName": "{{ printf \"%s-dynamic-plugins-registry-auth\" .Release.Name }}"
}
},
{
"emptyDir": {},
"name": "npmcacache"
Expand Down Expand Up @@ -4227,6 +4235,11 @@
"readOnly": true,
"subPath": ".npmrc"
},
{
"mountPath": "/opt/app-root/src/.config/containers",
"name": "dynamic-plugins-registry-auth",
"readOnly": true
},
{
"mountPath": "/opt/app-root/src/.npm/_cacache",
"name": "npmcacache"
Expand Down
10 changes: 10 additions & 0 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ upstream:
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: {}
initContainers:
Expand Down Expand Up @@ -183,6 +190,9 @@ upstream:
name: dynamic-plugins-npmrc
readOnly: true
subPath: .npmrc
- mountPath: /opt/app-root/src/.config/containers
name: dynamic-plugins-registry-auth
readOnly: true
- mountPath: /opt/app-root/src/.npm/_cacache
name: npmcacache
workingDir: /opt/app-root/src
Expand Down

0 comments on commit 0de96b2

Please sign in to comment.