Repository navigation
Expand file tree
/
Copy pathorchestrator-templates-values.yaml.template
More file actions
211 lines (202 loc) · 8.1 KB
/
Copy pathorchestrator-templates-values.yaml.template
File metadata and controls
211 lines (202 loc) · 8.1 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Template file for orchestrator templates values
# This values file will be merged with the existing values in the backstage release.
#
# INSTRUCTIONS FOR MANUAL EDITING:
# 1. Replace __RHDH_BASE_URL__ with your actual RHDH route URL
# Example: https://rhdh-developer-hub-rhdh.apps.cluster-abc123.abc123.sandbox.opentlc.com
# 2. Replace {{CLUSTER_DOMAIN}} with your cluster's domain (if needed)
# Example: apps.cluster-abc123.abc123.sandbox.opentlc.com
# 3. Update any other environment-specific values as needed
#
# AUTOMATED GENERATION:
# You can also use sed to replace placeholders automatically:
# RHDH_ROUTE="https://$(oc get route -n your-rhdh-namespace -o jsonpath='{.items[0].spec.host}')"
# sed -i "s|__RHDH_BASE_URL__|$RHDH_ROUTE|g" this-file.yaml
#
# VALIDATION:
# After editing, verify that no __*__ placeholders remain:
# grep "__.*__" this-file.yaml
# Configure dynamic plugins directly (no ConfigMap mounting needed)
global:
dynamic:
includes:
- "dynamic-plugins.default.yaml"
plugins:
- enabled: true
package: ./dynamic-plugins/dist/backstage-community-plugin-tekton
- enabled: true
package: ./dynamic-plugins/dist/backstage-community-plugin-redhat-argocd
- enabled: true
package: ./dynamic-plugins/dist/roadiehq-backstage-plugin-argo-cd-backend-dynamic
- enabled: true
package: ./dynamic-plugins/dist/roadiehq-scaffolder-backend-argocd-dynamic
- enabled: true
package: ./dynamic-plugins/dist/backstage-plugin-kubernetes-backend-dynamic
pluginConfig:
kubernetes:
clusterLocatorMethods:
- type: config
clusters:
- name: Default Cluster
authProvider: serviceAccount
url: https://kubernetes.default.svc
skipTLSVerify: false
customResources:
- apiVersion: v1
group: tekton.dev
plural: pipelines
- apiVersion: v1
group: tekton.dev
plural: pipelineruns
- apiVersion: v1
group: tekton.dev
plural: taskruns
- apiVersion: v1
group: route.openshift.io
plural: routes
serviceLocatorMethod:
type: multiTenant
- enabled: true
package: ./dynamic-plugins/dist/backstage-plugin-kubernetes
- enabled: true
package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-github-dynamic
- enabled: true
package: ./dynamic-plugins/dist/backstage-plugin-scaffolder-backend-module-gitlab-dynamic
upstream:
backstage:
appConfig:
app:
baseUrl: __RHDH_BASE_URL__
auth:
environment: development
providers:
guest:
dangerouslyAllowOutsideDevelopment: true
github:
development:
clientId: ${GITHUB_CLIENT_ID}
clientSecret: ${GITHUB_CLIENT_SECRET}
scopes:
- user:email
- user:name
- user:login
- repo
includes:
- orchestrator-catalog.yaml
- orchestrator-auth.yaml
backend:
auth:
externalAccess:
- options:
secret: ${BACKEND_SECRET}
subject: legacy-default-config
type: legacy
baseUrl: __RHDH_BASE_URL__
cors:
origin: __RHDH_BASE_URL__
database:
connection:
password: ${POSTGRESQL_ADMIN_PASSWORD}
user: postgres
argocd:
appLocatorMethods:
- instances:
- name: main
url: ${ARGOCD_URL}
username: ${ARGOCD_USERNAME}
password: ${ARGOCD_PASSWORD}
type: config
extraEnvVarsSecrets:
- orchestrator-auth-secret
extraAppConfig:
- configMapRef: orchestrator-catalog
filename: orchestrator-catalog.yaml
- configMapRef: orchestrator-auth
filename: orchestrator-auth.yaml
extraEnvVars:
- name: BACKEND_SECRET
valueFrom:
secretKeyRef:
key: backend-secret
name: '{{ include "rhdh.backend-secret-name" $ }}'
- name: POSTGRESQL_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: postgres-password
name: '{{- include "rhdh.postgresql.secretName" . }}'
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: "0"
orchestrator:
enabled: true
serverlessLogicOperator:
enabled: true
serverlessOperator:
enabled: true
sonataflowPlatform:
monitoring:
enabled: true
eventing:
broker:
name: ""
namespace: ""
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
# -- Secret name for the user-created secret to connect an external DB
externalDBsecretRef: ""
# -- Name for the user-configured external Database
externalDBName: ""
# -- Host for the user-configured external Database
externalDBHost: ""
# -- Port for the user-configured external Database
externalDBPort: ""
# -- Image for the init container used by the create-db job
initContainerImage: "{{ .Values.upstream.postgresql.image.registry }}/{{ .Values.upstream.postgresql.image.repository }}:{{ .Values.upstream.postgresql.image.tag }}"
# -- Image for the container used by the create-db job
createDBJobImage: "{{ .Values.upstream.postgresql.image.registry }}/{{ .Values.upstream.postgresql.image.repository }}:{{ .Values.upstream.postgresql.image.tag }}"
# -- Orchestrator plugins and their configuration
plugins:
# RHDHBUGS-1464: Note that the plugins here fetch the packages from their direct HTTP download URLs from the (official) Red Hat NPM Registry.
# Previously, we were using the "@redhat/plugin@version" form along with injecting a .npmrc Secret to resolve the "@redhat" scope,
# but this caused conflicting issues with user-provided .npmrc secrets.
- enabled: true
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator-backend-dynamic/-/backstage-plugin-orchestrator-backend-dynamic-1.6.0.tgz"
integrity: sha512-Kr55YbuVwEADwGef9o9wyimcgHmiwehPeAtVHa9g2RQYoSPEa6BeOlaPzB6W5Ke3M2bN/0j0XXtpLuvrlXQogA==
pluginConfig:
orchestrator:
dataIndexService:
url: http://sonataflow-platform-data-index-service.{{ .Release.Namespace }}
- enabled: true
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator/-/backstage-plugin-orchestrator-1.6.0.tgz"
integrity: sha512-fOSJv2PgtD2urKwBM7p9W6gV/0UIHSf4pkZ9V/wQO0eg0Zi5Mys/CL1ba3nO9x9l84MX11UBZ2r7PPVJPrmOtw==
pluginConfig:
dynamicPlugins:
frontend:
red-hat-developer-hub.backstage-plugin-orchestrator:
appIcons:
- importName: OrchestratorIcon
name: orchestratorIcon
dynamicRoutes:
- importName: OrchestratorPage
menuItem:
icon: orchestratorIcon
text: Orchestrator
path: /orchestrator
- enabled: true
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-scaffolder-backend-module-orchestrator-dynamic/-/backstage-plugin-scaffolder-backend-module-orchestrator-dynamic-1.6.0.tgz"
integrity: sha512-Bueeix4661fXEnfJ9y31Yw91LXJgw6hJUG7lPVdESCi9VwBCjDB9Rm8u2yPqP8sriwr0OMtKtqD+Odn3LOPyVw==
pluginConfig:
orchestrator:
dataIndexService:
url: http://sonataflow-platform-data-index-service.{{ .Release.Namespace }}
- enabled: true
package: "https://npm.registry.redhat.com/@redhat/backstage-plugin-orchestrator-form-widgets/-/backstage-plugin-orchestrator-form-widgets-1.6.0.tgz"
integrity: sha512-Tqn6HO21Q1TQ7TFUoRhwBVCtSBzbQYz+OaanzzIB0R24O6YtVx3wR7Chtr5TzC05Vz5GkBO1+FZid8BKpqljgA==
pluginConfig:
dynamicPlugins:
frontend:
red-hat-developer-hub.backstage-plugin-orchestrator-form-widgets: {}