This all is 100% open source, so if you would like to contribute, feel free to edit this page.
For the remainder of this documentation pages, we will expect to start from a clean state as described at the end of section Configure Developer Hub. In order to not have conflicts when skipping sections, I will highlight the places where the config needs to be added as follows:
As an example: Adding this yaml
spec:
presenter: maarten
To this annotated template (on anchor_01)
config:
metadata:
name: demo-yaml
<anchor_01>
Would result in:
config:
metadata:
name: demo-yaml
spec:
presenter: maarten
In case you get a second component to be added on anchor_01, let’s say
spec:
location: BeLux
Then it would result in:
config:
metadata:
name: demo-yaml
spec:
presenter: maarten
location: BeLux
In case it would not be entirely clear, I will add the yaml definition which holds all the config of all listed components beneath in the respectively yaml files (i.e., yaml file name will map on the name of the config map).
Templates to start from:
apiVersion: rhdh.redhat.com/v1alpha1
kind: Backstage
metadata:
name: developer-hub
namespace: demo-project
spec:
application:
dynamicPluginsConfigMapName: dynamic-plugins-rhdh # added
appConfig:
mountPath: /opt/app-root/src
configMaps:
- name: app-config-rhdh
extraFiles:
mountPath: /opt/app-root/src
extraEnvs:
envs:
# Disabling TLS verification
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: '0'
secrets:
- name: rhdh-secrets # added
replicas: 1
route:
enabled: true
database:
enableLocalDb: true
kind: ConfigMap
apiVersion: v1
metadata:
name: app-config-rhdh
namespace: demo-project
data:
app-config-rhdh.yaml: |
<anchor_02>
app:
title: My Red Hat Developer Hub Instance
baseUrl: https://backstage-developer-hub-demo-project.${basedomain}
backend:
auth:
keys:
- secret: ${BACKEND_SECRET}
baseUrl: https://backstage-developer-hub-demo-project.${basedomain}
cors:
origin: https://backstage-developer-hub-demo-project.${basedomain}
<anchor_03>
<anchor_01>
kind: ConfigMap
apiVersion: v1
metadata:
name: dynamic-plugins-rhdh
namespace: demo-project
data:
dynamic-plugins.yaml: |
includes:
- dynamic-plugins.default.yaml
<anchor_01>