Skip to content

Commit 507daf6

Browse files
authored
feat: use PVC for dynamic-plugins-root (#40)
1 parent 5786116 commit 507daf6

6 files changed

Lines changed: 30 additions & 40 deletions

File tree

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ sources:
4545
# This is the chart version. This version number should be incremented each time you make changes
4646
# to the chart and its templates, including the app version.
4747
# Versions are expected to follow Semantic Versioning (https://semver.org/)
48-
version: 2.17.0
48+
version: 2.18.0

charts/backstage/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# RHDH Backstage Helm Chart for OpenShift (Community Version)
33

44
[![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)
5-
![Version: 2.17.0](https://img.shields.io/badge/Version-2.17.0-informational?style=flat-square)
5+
![Version: 2.18.0](https://img.shields.io/badge/Version-2.18.0-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying Red Hat Developer Hub.
99

10-
The telemetry data collection feature is enabled by default. Red Hat Developer Hub sends telemetry data to Red Hat by using the `backstage-plugin-analytics-provider-segment` plugin. To disable this and to learn what data is being collected, see https://access.redhat.com/documentation/en-us/red_hat_developer_hub/1.2/html-single/administration_guide_for_red_hat_developer_hub/index#assembly-rhdh-telemetry_admin-rhdh
10+
The telemetry data collection feature is enabled by default. Red Hat Developer Hub sends telemetry data to Red Hat by using the `backstage-plugin-analytics-provider-segment` plugin. To disable this and to learn what data is being collected, see https://access.redhat.com/documentation/en-us/red_hat_developer_hub/1.3/html-single/administration_guide_for_red_hat_developer_hub/index#assembly-rhdh-telemetry_admin-rhdh
1111

1212
**Homepage:** <https://redhat-developer.github.io/rhdh-chart/>
1313

@@ -166,8 +166,6 @@ Kubernetes: `>= 1.25.0-0`
166166
| route.tls.termination | Specify TLS termination. | string | `"edge"` |
167167
| route.wildcardPolicy | Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. | string | `"None"` |
168168
| upstream | Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml) | object | Use Openshift compatible settings |
169-
| upstream.backstage.extraVolumes[0] | Ephemeral volume that will contain the dynamic plugins installed by the initContainer below at start. | object | `{"ephemeral":{"volumeClaimTemplate":{"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}}}}},"name":"dynamic-plugins-root"}` |
170-
| upstream.backstage.extraVolumes[0].ephemeral.volumeClaimTemplate.spec.resources.requests.storage | Size of the volume that will contain the dynamic plugins. It should be large enough to contain all the plugins. | string | `"2Gi"` |
171169
| upstream.backstage.initContainers[0].image | Image used by the initContainer to install dynamic plugins into the `dynamic-plugins-root` volume mount. It could be replaced by a custom image based on this one. | string | `quay.io/janus-idp/backstage-showcase:latest` |
172170

173171
## Opinionated Backstage deployment

charts/backstage/templates/pvc.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
kind: PersistentVolumeClaim
2+
apiVersion: v1
3+
metadata:
4+
name: {{ printf "%s-audit-log" .Release.Name }}
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 1Gi
11+
---
12+
kind: PersistentVolumeClaim
13+
apiVersion: v1
14+
metadata:
15+
name: {{ printf "%s-dynamic-plugins-root" .Release.Name }}
16+
spec:
17+
accessModes:
18+
- ReadWriteOnce
19+
resources:
20+
requests:
21+
storage: 5Gi

charts/backstage/values.schema.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,21 +2576,10 @@
25762576
"extraVolumes": {
25772577
"default": [
25782578
{
2579-
"ephemeral": {
2580-
"volumeClaimTemplate": {
2581-
"spec": {
2582-
"accessModes": [
2583-
"ReadWriteOnce"
2584-
],
2585-
"resources": {
2586-
"requests": {
2587-
"storage": "2Gi"
2588-
}
2589-
}
2590-
}
2591-
}
2592-
},
2593-
"name": "dynamic-plugins-root"
2579+
"name": "dynamic-plugins-root",
2580+
"persistentVolumeClaim": {
2581+
"claimName": "{{ printf \"%s-dynamic-plugins-root\" .Release.Name }}"
2582+
}
25942583
},
25952584
{
25962585
"name": "audit-log-data",

charts/backstage/values.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,9 @@ upstream:
122122
- name: audit-log-data
123123
mountPath: /var/log/audit
124124
extraVolumes:
125-
# -- Ephemeral volume that will contain the dynamic plugins installed by the initContainer below at start.
126125
- name: dynamic-plugins-root
127-
ephemeral:
128-
volumeClaimTemplate:
129-
spec:
130-
accessModes:
131-
- ReadWriteOnce
132-
resources:
133-
requests:
134-
# -- Size of the volume that will contain the dynamic plugins. It should be large enough to contain all the plugins.
135-
storage: 2Gi
126+
persistentVolumeClaim:
127+
claimName: '{{ printf "%s-dynamic-plugins-root" .Release.Name }}'
136128
- name: audit-log-data
137129
persistentVolumeClaim:
138130
claimName: '{{ printf "%s-audit-log" .Release.Name }}'

0 commit comments

Comments
 (0)