Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ sources: []
# Versions are expected to follow Semantic Versioning (https://semver.org/)
# Note that when this chart is published to https://github.com/openshift-helm-charts/charts
# it will follow the RHDH versioning 1.y.z
version: 4.4.2
version: 4.4.3
5 changes: 3 additions & 2 deletions charts/backstage/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# RHDH Backstage Helm Chart for OpenShift

![Version: 4.4.2](https://img.shields.io/badge/Version-4.4.2-informational?style=flat-square)
![Version: 4.4.3](https://img.shields.io/badge/Version-4.4.3-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, which is a Red Hat supported version of Backstage.
Expand Down Expand Up @@ -209,11 +209,12 @@ Kubernetes: `>= 1.27.0-0`
| route.tls.key | Key file contents | string | `""` |
| route.tls.termination | Specify TLS termination. | string | `"edge"` |
| route.wildcardPolicy | Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed. | string | `"None"` |
| test | Test pod parameters | object | `{"enabled":true,"image":{"registry":"quay.io","repository":"curl/curl","tag":"latest"}}` |
| test | Test pod parameters | object | `{"enabled":true,"image":{"registry":"quay.io","repository":"curl/curl","tag":"latest"},"injectTestNpmrcSecret":false}` |
| test.enabled | Whether to enable the test-connection pod used for testing the Release using `helm test`. | bool | `true` |
| test.image.registry | Test connection pod image registry | string | `"quay.io"` |
| test.image.repository | Test connection pod image repository. Note that the image needs to have both the `sh` and `curl` binaries in it. | string | `"curl/curl"` |
| test.image.tag | Test connection pod image tag. Note that the image needs to have both the `sh` and `curl` binaries in it. | string | `"latest"` |
| test.injectTestNpmrcSecret | Whether to inject a fake dynamic plugins npmrc secret. <br />See RHDHBUGS-1893 and RHDHBUGS-1464 for the motivation behind this. <br />This is only used for testing purposes and should not be used in production. <br />Only relevant when `test.enabled` field is set to `true`. | bool | `false` |
| upstream | Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml) | object | Use Openshift compatible settings |
| 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":"5Gi"}}}}},"name":"dynamic-plugins-root"}` |
| 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 | `"5Gi"` |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
route:
enabled: false

upstream:
postgresql:
primary:
persistence:
enabled: false

global:
dynamic:
plugins:
# Enable additional plugins, which should be merged with the Orchestrator plugins
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import-backend-dynamic
disabled: false
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-bulk-import
disabled: false

orchestrator:
enabled: true

test:
injectTestNpmrcSecret: true
16 changes: 16 additions & 0 deletions charts/backstage/templates/tests/test-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# RHDHBUGS-1893: test-only option to inject a user-provided dynamic plugins npmrc secret.
# Doing it this way because the secret name is dynamic and depends on the release name.
{{- if and .Values.test.enabled .Values.test.injectTestNpmrcSecret }}
apiVersion: v1
kind: Secret
metadata:
name: '{{ .Release.Name }}-dynamic-plugins-npmrc'
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-5"
immutable: true
stringData:
.npmrc: |
@myscope:registry=https://my-registry.example.com
//my-registry.example.com:_authToken=foo
{{- end }}
39 changes: 39 additions & 0 deletions charts/backstage/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,45 @@
"title": "OpenShift Route parameters.",
"type": "object"
},
"test": {
"additionalProperties": false,
"properties": {
"enabled": {
"default": true,
"title": "Enable test configuration. If enabled, test resources will be created to verify the Helm Release has been successfully deployed using the `helm test` command.",
"type": "boolean"
},
"image": {
"additionalProperties": false,
"properties": {
"registry": {
"default": "quay.io",
"title": "Registry to use for the test pod image.",
"type": "string"
},
"repository": {
"default": "curl/curl",
"title": "Repository to use for the test pod image.",
"type": "string"
},
"tag": {
"default": "latest",
"title": "Tag to use for the test pod image.",
"type": "string"
}
},
"title": "Image to use for the test pod. Note that the image needs to have both the `sh` and `curl` binaries in it.",
"type": "object"
},
"injectTestNpmrcSecret": {
"default": false,
"title": "Whether to inject a fake dynamic plugins npmrc secret. This is only used for testing purposes and should not be used in production. It is only relevant when `test.enabled` field is set to `true`.",
"type": "boolean"
}
},
"title": "Test configuration for the Backstage chart.",
"type": "object"
},
"upstream": {
"properties": {
"backstage": {
Expand Down
39 changes: 39 additions & 0 deletions charts/backstage/values.schema.tmpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,45 @@
}
}
},
"test": {
"title": "Test configuration for the Backstage chart.",
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"title": "Enable test configuration. If enabled, test resources will be created to verify the Helm Release has been successfully deployed using the `helm test` command.",
"type": "boolean",
"default": true
},
"image": {
"title": "Image to use for the test pod. Note that the image needs to have both the `sh` and `curl` binaries in it.",
"type": "object",
"additionalProperties": false,
"properties": {
"registry": {
"title": "Registry to use for the test pod image.",
"type": "string",
"default": "quay.io"
},
"repository": {
"title": "Repository to use for the test pod image.",
"type": "string",
"default": "curl/curl"
},
"tag": {
"title": "Tag to use for the test pod image.",
"type": "string",
"default": "latest"
}
}
},
"injectTestNpmrcSecret": {
"title": "Whether to inject a fake dynamic plugins npmrc secret. This is only used for testing purposes and should not be used in production. It is only relevant when `test.enabled` field is set to `true`.",
"type": "boolean",
"default": false
}
}
},
"orchestrator": {
"title": "orchestrator configuration",
"type": "object",
Expand Down
6 changes: 6 additions & 0 deletions charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ test:
# -- Test connection pod image tag. Note that the image needs to have both the `sh` and `curl` binaries in it.
tag: latest

# -- Whether to inject a fake dynamic plugins npmrc secret.
# <br />See RHDHBUGS-1893 and RHDHBUGS-1464 for the motivation behind this.
# <br />This is only used for testing purposes and should not be used in production.
# <br />Only relevant when `test.enabled` field is set to `true`.
injectTestNpmrcSecret: false

orchestrator:
enabled: false
serverlessLogicOperator:
Expand Down
Loading