-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathrhdh-cr.yaml
75 lines (72 loc) · 2.02 KB
/
rhdh-cr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: rhdh.redhat.com/v1alpha3
kind: Backstage
metadata:
name: my-rhdh
spec:
application:
image: quay.io/rhdh/rhdh-hub-rhel9:latest
appConfig:
configMaps:
- name: app-config-rhdh
dynamicPluginsConfigMapName: dynamic-plugins-rhdh
extraEnvs:
secrets:
- name: secrets-rhdh
---
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config-rhdh
data:
"app-config-rhdh.yaml": |
backend:
auth:
externalAccess:
- type: legacy
options:
subject: legacy-default-config
secret: "${BACKEND_SECRET}"
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
environment: development
providers:
github:
development:
clientId: '${GH_CLIENT_ID}'
clientSecret: '${GH_CLIENT_SECRET}'
---
apiVersion: v1
kind: Secret
metadata:
name: secrets-rhdh
stringData:
# generated with the command below (from https://backstage.io/docs/auth/service-to-service-auth/#setup):
# node -p 'require("crypto").randomBytes(24).toString("base64")'
BACKEND_SECRET: "R2FxRVNrcmwzYzhhN3l0V1VRcnQ3L1pLT09WaVhDNUEK" # notsecret
GH_ORG: "my-gh-org"
GH_CLIENT_ID: "my GH client ID"
GH_CLIENT_SECRET: "my GH client secret"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: dynamic-plugins-rhdh
data:
dynamic-plugins.yaml: |
includes:
- dynamic-plugins.default.yaml
plugins:
- package: './dynamic-plugins/dist/backstage-plugin-catalog-backend-module-github-dynamic'
disabled: false
pluginConfig:
catalog:
providers:
github:
myorg:
organization: '${GH_ORG}'
schedule:
# supports cron, ISO duration, "human duration" (used below)
frequency: { minutes: 30}
# supports ISO duration, "human duration (used below)
timeout: { minutes: 3}
initialDelay: { seconds: 15}