-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathvalues.yaml
More file actions
499 lines (484 loc) · 19.4 KB
/
values.yaml
File metadata and controls
499 lines (484 loc) · 19.4 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
global:
dynamic:
# -- Array of YAML files listing dynamic plugins to include with those listed in the `plugins` field.
# Relative paths are resolved from the working directory of the initContainer that will install the plugins (`/opt/app-root/src`).
includes:
# -- List of dynamic plugins included inside the `rhdh-community/rhdh` container image, some of which are disabled by default.
# This file ONLY works with the `rhdh-community/rhdh` container image.
- 'dynamic-plugins.default.yaml'
# -- List of dynamic plugins, possibly overriding the plugins listed in `includes` files.
# Every item defines the plugin `package` as a [NPM package spec](https://docs.npmjs.com/cli/v10/using-npm/package-spec),
# an optional `pluginConfig` with plugin-specific backstage configuration, and an optional `disabled` flag to disable/enable a plugin
# listed in `includes` files. It also includes an `integrity` field that is used to verify the plugin package [integrity](https://w3c.github.io/webappsec-subresource-integrity/#integrity-metadata-description).
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
pluginConfig:
dynamicPlugins:
frontend:
red-hat-developer-hub.backstage-plugin-bulk-import:
appIcons:
- name: bulkImportIcon
importName: BulkImportIcon
dynamicRoutes:
- path: /bulk-import
importName: BulkImportPage
menuItem:
icon: bulkImportIcon
text: Bulk import
# - package: ./dynamic-plugins/dist/backstage-plugin-kubernetes-backend-dynamic
# disabled: false
# pluginConfig:
# kubernetes:
# customResources:
# - group: 'tekton.dev'
# apiVersion: 'v1beta1'
# plural: 'pipelines'
# - group: 'tekton.dev'
# apiVersion: 'v1beta1'
# plural: 'pipelineruns'
# - group: 'tekton.dev'
# apiVersion: 'v1beta1'
# plural: 'taskruns'
# - group: 'route.openshift.io'
# apiVersion: 'v1'
# plural: 'routes'
# serviceLocatorMethod:
# type: 'multiTenant'
# clusterLocatorMethods:
# - type: 'config'
# clusters:
# - name: ${K8S_CLUSTER_NAME}
# url: ${K8S_CLUSTER_URL}
# authProvider: 'serviceAccount'
# skipTLSVerify: true
# serviceAccountToken: ${K8S_CLUSTER_TOKEN}
# - package: ./dynamic-plugins/dist/backstage-plugin-kubernetes
# disabled: false
# pluginConfig:
# dynamicPlugins:
# frontend:
# backstage.plugin-kubernetes:
# mountPoints:
# - mountPoint: entity.page.kubernetes/cards
# importName: EntityKubernetesContent
# config:
# layout:
# gridColumn: "1 / -1"
# if:
# anyOf:
# - hasAnnotation: backstage.io/kubernetes-id
# - hasAnnotation: backstage.io/kubernetes-namespace
# - package: ./dynamic-plugins/dist/backstage-community-plugin-topology
# disabled: false
# pluginConfig:
# dynamicPlugins:
# frontend:
# backstage-community.plugin-topology:
# mountPoints:
# - mountPoint: entity.page.topology/cards
# importName: TopologyPage
# config:
# layout:
# gridColumn: "1 / -1"
# height: 75vh
# if:
# anyOf:
# - hasAnnotation: backstage.io/kubernetes-id
# - hasAnnotation: backstage.io/kubernetes-namespace
# - package: ./dynamic-plugins/dist/backstage-community-plugin-tekton
# disabled: false
# pluginConfig:
# dynamicPlugins:
# frontend:
# backstage-community.plugin-tekton:
# mountPoints:
# - mountPoint: entity.page.ci/cards
# importName: TektonCI
# config:
# layout:
# gridColumn: "1 / -1"
# if:
# allOf:
# - isTektonCIAvailable
- package: ./dynamic-plugins/dist/backstage-community-plugin-quay
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
backstage-community.plugin-quay:
mountPoints:
- mountPoint: entity.page.image-registry/cards
importName: QuayPage
config:
layout:
gridColumn: 1 / -1
if:
anyOf:
- isQuayAvailable
- package: ./dynamic-plugins/dist/backstage-community-plugin-tech-radar
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
backstage-community.plugin-tech-radar:
apiFactories:
- importName: TechRadarApi
appIcons:
- name: techRadar
importName: TechRadarIcon
dynamicRoutes:
- path: /tech-radar
importName: TechRadarPage
menuItem:
icon: techRadar
text: Tech Radar
config:
props:
width: 1500
height: 800
- package: ./dynamic-plugins/dist/backstage-community-plugin-rbac
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
backstage-community.plugin-rbac:
mountPoints:
- mountPoint: admin.page.rbac/cards
importName: RbacPage
config:
layout:
gridColumn: "1 / -1"
width: 100vw
props:
useHeader: false
dynamicRoutes:
- path: /admin/rbac
importName: RbacPage
# - package: ./dynamic-plugins/dist/backstage-community-plugin-catalog-backend-module-keycloak-dynamic
# disabled: false
# pluginConfig:
# catalog:
# providers:
# keycloakOrg:
# default:
# baseUrl: "${KEYCLOAK_BASE_URL}"
# loginRealm: "${KEYCLOAK_LOGIN_REALM}"
# realm: "${KEYCLOAK_REALM}"
# clientId: "${KEYCLOAK_CLIENT_ID}"
# clientSecret: "${KEYCLOAK_CLIENT_SECRET}"
# schedule:
# frequency:
# minutes: 1
# initialDelay:
# seconds: 15
# timeout:
# minutes: 1
# pluginConfig:
# dynamicPlugins:
# frontend:
# backstage-community.plugin-ocm:
# appIcons:
# - name: ocmIcon
# importName: OcmIcon
# dynamicRoutes:
# - path: /ocm
# importName: OcmPage
# menuItem:
# icon: ocmIcon
# text: Clusters
# mountPoints:
# - mountPoint: entity.page.overview/context
# importName: ClusterContextProvider
# - mountPoint: entity.page.overview/cards
# importName: ClusterAvailableResourceCard
# config:
# layout:
# gridColumnEnd:
# lg: "span 4"
# md: "span 6"
# xs: "span 12"
# if:
# allOf:
# - isKind: resource
# - isType: kubernetes-cluster
# - mountPoint: entity.page.overview/cards
# importName: ClusterInfoCard
# config:
# layout:
# gridColumnEnd:
# lg: "span 4"
# md: "span 6"
# xs: "span 12"
# if:
# allOf:
# - isKind: resource
# - isType: kubernetes-cluster
# -- Shorthand for users who do not want to specify a custom HOSTNAME. Used ONLY with the DEFAULT upstream.backstage.appConfig value and with OCP Route enabled.
clusterRouterBase: "apps-crc.testing"
# -- Custom hostname shorthand, overrides `global.clusterRouterBase`, `upstream.ingress.host`, `route.host`, and url values in `upstream.backstage.appConfig`.
host: ""
# -- Enable service authentication within Backstage instance
auth:
# -- Backend service to service authentication
# <br /> Ref: https://backstage.io/docs/auth/service-to-service-auth/
backend:
# -- Enable backend service to service authentication, unless configured otherwise it generates a secret value
enabled: true
# -- Instead of generating a secret value, refer to existing secret
existingSecret: ""
# -- Instead of generating a secret value, use the following value
value: ""
# -- Upstream Backstage [chart configuration](https://github.com/backstage/charts/blob/main/charts/backstage/values.yaml)
# @default -- Use Openshift compatible settings
upstream:
nameOverride: backstage
backstage:
image:
registry: quay.io
repository: rhdh-community/rhdh
tag: pr-1541
command: []
# FIXME (tumido): USE POSTGRES_PASSWORD and POSTGRES_USER instead of POSTGRES_ADMIN_PASSWORD
# This is a hack. In {fedora,rhel}/postgresql images, regular user is forbidden
# from creating DBs in runtime. A single DB can be created ahead of time via
# POSTGRESQL_DATABASE env variable (in this case via
# upstream.postgresql.primary.extraEnvVars value), but this doesn't allow us to
# create multiple DBs. Since Backstage requires by default 5 different DBs, we
# can't accommodate that properly.
appConfig:
app:
# Please update to match host in case you don't want to configure hostname via `global.clusterRouterBase` or `global.host` if not deploying on an openshift cluster.
baseUrl: 'https://{{- include "rhdh.hostname" . }}'
backend:
baseUrl: 'https://{{- include "rhdh.hostname" . }}'
cors:
origin: 'https://{{- include "rhdh.hostname" . }}'
database:
connection:
password: ${POSTGRESQL_ADMIN_PASSWORD}
user: postgres
auth:
externalAccess:
- type: legacy
options:
subject: legacy-default-config
secret: ${BACKEND_SECRET}
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: true
seccompProfile:
type: "RuntimeDefault"
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: 1000m
memory: 2.5Gi
ephemeral-storage: 5Gi
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 7007
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 2
timeoutSeconds: 2
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 7007
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
extraAppConfig:
- configMapRef: app-config-rhdh
filename: app-config-rhdh.yaml
extraEnvVarsSecrets:
- rhdh-secrets
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'
args:
# This additional `app-config`` file is generated by the initContainer below, and contains the merged configuration of installed dynamic plugins.
- '--config'
- dynamic-plugins-root/app-config.dynamic-plugins.yaml
extraVolumeMounts:
# The initContainer below will install dynamic plugins in this volume mount.
- name: dynamic-plugins-root
mountPath: /opt/app-root/src/dynamic-plugins-root
# Audit Log data will be stored in this volume mount.
- name: audit-log-data
mountPath: /var/log/redhat-developer-hub/audit
- mountPath: /opt/app-root/src/rbac
name: rbac-policy
extraVolumes:
# -- Ephemeral volume that will contain the dynamic plugins installed by the initContainer below at start.
- name: dynamic-plugins-root
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
# -- Size of the volume that will contain the dynamic plugins. It should be large enough to contain all the plugins.
storage: 2Gi
- name: audit-log-data
persistentVolumeClaim:
claimName: '{{ printf "%s-audit-log" .Release.Name }}'
# Volume that will expose the `dynamic-plugins.yaml` file from the `dynamic-plugins` config map.
# The `dynamic-plugins` config map is created by the helm chart from the content of the `global.dynamic` field.
- name: dynamic-plugins
configMap:
defaultMode: 420
name: '{{ printf "%s-dynamic-plugins" .Release.Name }}'
optional: true
# Optional volume that allows exposing the `.npmrc` file (through a `dynamic-plugins-npmrc` secret)
# to be used when running `npm pack` during the dynamic plugins installation by the initContainer.
- name: dynamic-plugins-npmrc
secret:
defaultMode: 420
optional: true
secretName: dynamic-plugins-npmrc
- configMap:
defaultMode: 420
name: rbac-policy
name: rbac-policy
- name: npmcacache
emptyDir: {}
initContainers:
- name: install-dynamic-plugins
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 1000m
memory: 2.5Gi
ephemeral-storage: 5Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: true
seccompProfile:
type: "RuntimeDefault"
# -- 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.
# @default -- `quay.io/rhdh-community/rhdh:latest`
image: '{{ include "backstage.image" . }}'
command:
- ./install-dynamic-plugins.sh
- /dynamic-plugins-root
env:
- name: NPM_CONFIG_USERCONFIG
value: /opt/app-root/src/.npmrc.dynamic-plugins
imagePullPolicy: Always
volumeMounts:
- mountPath: /dynamic-plugins-root
name: dynamic-plugins-root
- mountPath: /opt/app-root/src/dynamic-plugins.yaml
name: dynamic-plugins
readOnly: true
subPath: dynamic-plugins.yaml
- mountPath: /opt/app-root/src/.npmrc.dynamic-plugins
name: dynamic-plugins-npmrc
readOnly: true
subPath: .npmrc
- mountPath: /opt/app-root/src/.npm/_cacache
name: npmcacache
workingDir: /opt/app-root/src
installDir: /opt/app-root/src
podAnnotations:
checksum/dynamic-plugins: >-
{{- include "common.tplvalues.render" ( dict "value"
.Values.global.dynamic "context" $) | sha256sum }}
postgresql:
enabled: true
postgresqlDataDir: /var/lib/pgsql/data/userdata
image:
registry: quay.io
repository: fedora/postgresql-15
tag: latest@sha256:1cda06868734de06a72be1edd8958fce239e68b2dd8195721a80a3bb191afeae
auth:
secretKeys:
adminPasswordKey: postgres-password
userPasswordKey: password
primary:
# TODO: https://issues.redhat.com/browse/RHIDP-2645
podSecurityContext:
enabled: false
containerSecurityContext:
enabled: false
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 250m
memory: 1024Mi
ephemeral-storage: 20Mi
persistence:
enabled: true
size: 1Gi
mountPath: /var/lib/pgsql/data
extraEnvVars:
- name: POSTGRESQL_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: postgres-password
name: '{{- include "postgresql.v1.secretName" . }}'
ingress:
host: "{{ .Values.global.host }}"
# -- OpenShift Route parameters
route:
# -- Route specific annotations
annotations: {}
# -- Enable the creation of the route resource
enabled: true
# -- Set the host attribute to a custom value. If not set, OpenShift will generate it, please make sure to match your baseUrl
host: "{{ .Values.global.host }}"
# -- Path that the router watches for, to route traffic for to the service.
path: "/"
# -- Wildcard policy if any for the route. Currently only 'Subdomain' or 'None' is allowed.
wildcardPolicy: None
# -- Route TLS parameters
# <br /> Ref: https://docs.openshift.com/container-platform/4.9/networking/routes/secured-routes.html
tls:
# -- Enable TLS configuration for the host defined at `route.host` parameter
enabled: true
# -- Specify TLS termination.
termination: "edge"
# -- Certificate contents
certificate: ""
# -- Key file contents
key: ""
# -- Cert authority certificate contents. Optional
caCertificate: ""
# -- Contents of the ca certificate of the final destination.
# <br /> When using reencrypt termination this file should be provided in order to have routers use it for health checks on the secure connection. If this field is not specified, the router may provide its own destination CA and perform hostname validation using the short service name (service.namespace.svc), which allows infrastructure generated certificates to automatically verify.
destinationCACertificate: ""
# -- Indicates the desired behavior for insecure connections to a route.
# <br /> While each router may make its own decisions on which ports to expose, this is normally port 80. The only valid values are None, Redirect, or empty for disabled.
insecureEdgeTerminationPolicy: "Redirect"