Skip to content

Commit 3f2d1df

Browse files
committed
knative moved to infra chart, more changes after reviews, csp are gone
1 parent 6477c99 commit 3f2d1df

12 files changed

Lines changed: 137 additions & 74 deletions

File tree

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ sources:
4444
# This is the chart version. This version number should be incremented each time you make changes
4545
# to the chart and its templates, including the app version.
4646
# Versions are expected to follow Semantic Versioning (https://semver.org/)
47-
version: 3.2.3
47+
version: 3.2.4

charts/backstage/README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RHDH Backstage Helm Chart for OpenShift (Community Version)
33

44
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rhdh-chart&style=flat-square)](https://artifacthub.io/packages/search?repo=rhdh-chart)
5-
![Version: 3.2.3](https://img.shields.io/badge/Version-3.2.3-informational?style=flat-square)
5+
![Version: 3.2.4](https://img.shields.io/badge/Version-3.2.4-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
77

88
A Helm chart for deploying Red Hat Developer Hub.
@@ -191,7 +191,7 @@ Kubernetes: `>= 1.25.0-0`
191191
| global.dynamic.includes[0] | List of dynamic plugins included inside the `janus-idp/backstage-showcase` container image, some of which are disabled by default. This file ONLY works with the `janus-idp/backstage-showcase` container image. | string | `"dynamic-plugins.default.yaml"` |
192192
| global.dynamic.plugins | 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). | list | `[]` |
193193
| global.host | Custom hostname shorthand, overrides `global.clusterRouterBase`, `upstream.ingress.host`, `route.host`, and url values in `upstream.backstage.appConfig`. | string | `""` |
194-
| orchestrator.enabled | | bool | `true` |
194+
| orchestrator.enabled | | bool | `false` |
195195
| orchestrator.orchestrator.sonataflowPlatform.eventing.broker.name | | string | `""` |
196196
| orchestrator.orchestrator.sonataflowPlatform.eventing.broker.namespace | | string | `""` |
197197
| orchestrator.orchestrator.sonataflowPlatform.monitoring.enabled | | bool | `true` |
@@ -206,8 +206,8 @@ Kubernetes: `>= 1.25.0-0`
206206
| orchestrator.postgres.serviceName | | string | `"sonataflow-psql-postgresql"` |
207207
| orchestrator.postgres.serviceNamespace | | string | `""` |
208208
| orchestrator.rhdhPlugins.npmRegistry | | string | `""` |
209-
| orchestrator.serverlessLogicOperator.enabled | | bool | `true` |
210-
| orchestrator.serverlessOperator.enabled | | bool | `true` |
209+
| orchestrator.serverlessLogicOperator.enabled | | bool | `false` |
210+
| orchestrator.serverlessOperator.enabled | | bool | `false` |
211211
| route | OpenShift Route parameters | object | `{"annotations":{},"enabled":true,"host":"{{ .Values.global.host }}","path":"/","tls":{"caCertificate":"","certificate":"","destinationCACertificate":"","enabled":true,"insecureEdgeTerminationPolicy":"Redirect","key":"","termination":"edge"},"wildcardPolicy":"None"}` |
212212
| route.annotations | Route specific annotations | object | `{}` |
213213
| route.enabled | Enable the creation of the route resource | bool | `true` |
@@ -337,3 +337,18 @@ upstream:
337337
volumePermissions:
338338
enabled: true
339339
```
340+
341+
## Installing RHDH with Orchestrator
342+
343+
Orchestrator brings serverless workflows into Backstage, focusing on the journey for application migration to the cloud, on boarding developers ,and user-made workflows of Backstage actions or external systems.
344+
Orchestrator is a flavor of RHDH, and can be installed alongside the RHDH in the same namespace and in the folloing way:
345+
346+
1. Install the orchestrator-infra helm chart, which will install the pre-requisites required to install RHDH flavored Orchestrator.
347+
```
348+
helm install <release_name> charts/orchestrator-infra
349+
```
350+
2. Manually approve the Install Plans created by the chart, and wait for the Openshift Serverless and Openshift Serverless Logic Operators to be deployed.
351+
3. Install backstage chart with helm, setting orchestrator to be enabled:
352+
```
353+
helm install <release_name> charts/backstage --set orchestrator.enabled=true
354+
```

charts/backstage/README.md.gotmpl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,18 @@ upstream:
269269
volumePermissions:
270270
enabled: true
271271
```
272+
273+
## Installing RHDH with Orchestrator
274+
275+
Orchestrator brings serverless workflows into Backstage, focusing on the journey for application migration to the cloud, on boarding developers ,and user-made workflows of Backstage actions or external systems.
276+
Orchestrator is a flavor of RHDH, and can be installed alongside the RHDH in the same namespace and in the folloing way:
277+
278+
1. Install the orchestrator-infra helm chart, which will install the pre-requisites required to install RHDH flavored Orchestrator.
279+
```
280+
helm install <release_name> charts/orchestrator-infra
281+
```
282+
2. Manually approve the Install Plans created by the chart, and wait for the Openshift Serverless and Openshift Serverless Logic Operators to be deployed.
283+
3. Install backstage chart with helm, setting orchestrator to be enabled:
284+
```
285+
helm install <release_name> charts/backstage --set orchestrator.enabled=true
286+
```
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{{/*
2+
Returns custom hostname
3+
*/}}
4+
{{- define "janus-idp.hostname" -}}
5+
{{- if .Values.global.host -}}
6+
{{- .Values.global.host -}}
7+
{{- else if .Values.global.clusterRouterBase -}}
8+
{{- printf "%s-%s.%s" (include "common.names.fullname" .) .Release.Namespace .Values.global.clusterRouterBase -}}
9+
{{- else -}}
10+
{{ fail "Unable to generate hostname" }}
11+
{{- end -}}
12+
{{- end -}}
13+
14+
{{/*
15+
Returns a secret name for service to service auth
16+
*/}}
17+
{{- define "janus-idp.backend-secret-name" -}}
18+
{{- if .Values.global.auth.backend.existingSecret -}}
19+
{{- .Values.global.auth.backend.existingSecret -}}
20+
{{- else -}}
21+
{{- printf "%s-auth" .Release.Name -}}
22+
{{- end -}}
23+
{{- end -}}
24+
25+
{{/*
26+
Sets the secretKeyRef name for Backstage to the PostgreSQL existing secret if it present
27+
*/}}
28+
{{- define "janus-idp.postgresql.secretName" -}}
29+
{{- if ((((.Values).global).postgresql).auth).existingSecret -}}
30+
{{- .Values.global.postgresql.auth.existingSecret -}}
31+
{{- else if .Values.postgresql.auth.existingSecret -}}
32+
{{- .Values.postgresql.auth.existingSecret -}}
33+
{{- else -}}
34+
{{- printf "%s-%s" .Release.Name "postgresql" -}}
35+
{{- end -}}
36+
{{- end -}}
37+
38+
{{/*
39+
Get the password secret.
40+
Referenced from: https://github.com/bitnami/charts/blob/main/bitnami/postgresql/templates/_helpers.tpl#L94-L105
41+
*/}}
42+
{{- define "postgresql.v1.secretName" -}}
43+
{{- if .Values.global.postgresql.auth.existingSecret -}}
44+
{{- printf "%s" (tpl .Values.global.postgresql.auth.existingSecret $) -}}
45+
{{- else if .Values.auth.existingSecret -}}
46+
{{- printf "%s" (tpl .Values.auth.existingSecret $) -}}
47+
{{- else -}}
48+
{{- printf "%s" (include "common.names.fullname" .) -}}
49+
{{- end -}}
50+
{{- end -}}

charts/backstage/templates/knatives.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

charts/backstage/templates/network-policies.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: networking.k8s.io/v1
33
kind: NetworkPolicy
44
metadata:
5-
name: allow-knative-to-sonataflow-and-workflows
5+
name: {{ .Release.Name }}-allow-knative-to-sonataflow-and-workflows
66
# Sonataflow and Workflows are using the RHDH target namespace.
77
namespace: {{ .Release.Namespace | quote }}
88
spec:
@@ -22,7 +22,7 @@ spec:
2222
apiVersion: networking.k8s.io/v1
2323
kind: NetworkPolicy
2424
metadata:
25-
name: allow-external-communication
25+
name: {{ .Release.Name }}-allow-external-communication
2626
namespace: {{ .Release.Namespace | quote }}
2727
spec:
2828
podSelector: {}
@@ -36,7 +36,7 @@ spec:
3636
apiVersion: networking.k8s.io/v1
3737
kind: NetworkPolicy
3838
metadata:
39-
name: allow-intra-network
39+
name: {{ .Release.Name }}-allow-intra-network
4040
namespace: {{ .Release.Namespace | quote }}
4141
spec:
4242
# Apply this policy to all pods in the namespace
@@ -57,7 +57,7 @@ spec:
5757
apiVersion: networking.k8s.io/v1
5858
kind: NetworkPolicy
5959
metadata:
60-
name: allow-monitoring-to-sonataflow-and-workflows
60+
name: {{ .Release.Name }}-allow-monitoring-to-sonataflow-and-workflows
6161
namespace: {{ .Release.Namespace | quote }}
6262
spec:
6363
# Apply this policy to all pods in the namespace

charts/backstage/values.schema.json

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"additionalProperties": false,
9696
"properties": {
9797
"enabled": {
98-
"default": true,
98+
"default": false,
9999
"title": "enabled flag",
100100
"type": "boolean"
101101
},
@@ -255,7 +255,7 @@
255255
"additionalProperties": false,
256256
"properties": {
257257
"enabled": {
258-
"default": true,
258+
"default": false,
259259
"title": "enabled flag",
260260
"type": "boolean"
261261
}
@@ -267,7 +267,7 @@
267267
"additionalProperties": false,
268268
"properties": {
269269
"enabled": {
270-
"default": true,
270+
"default": false,
271271
"title": "enabled flag",
272272
"type": "boolean"
273273
}
@@ -1161,24 +1161,6 @@
11611161
"cors": {
11621162
"origin": "https://{{- include \"janus-idp.hostname\" . }}"
11631163
},
1164-
"csp": {
1165-
"connect-src": [
1166-
"'self'",
1167-
"http:",
1168-
"https:",
1169-
"data:"
1170-
],
1171-
"script-src": [
1172-
"'self'",
1173-
"'unsafe-inline'",
1174-
"'unsafe-eval'"
1175-
],
1176-
"script-src-elem": [
1177-
"'self'",
1178-
"'unsafe-inline'",
1179-
"'unsafe-eval'"
1180-
]
1181-
},
11821164
"database": {
11831165
"connection": {
11841166
"password": "${POSTGRESQL_ADMIN_PASSWORD}",

charts/backstage/values.schema.tmpl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
"enabled": {
205205
"title": "enabled flag",
206206
"type": "boolean",
207-
"default": true
207+
"default": false
208208
},
209209
"rhdhPlugins": {
210210
"title": "rhdhPlugins configuration",

charts/backstage/values.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ upstream:
5656
baseUrl: 'https://{{- include "janus-idp.hostname" . }}'
5757
cors:
5858
origin: 'https://{{- include "janus-idp.hostname" . }}'
59-
csp:
60-
script-src: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
61-
script-src-elem: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
62-
connect-src: ["'self'", 'http:', 'https:', 'data:']
6359
database:
6460
connection:
6561
password: ${POSTGRESQL_ADMIN_PASSWORD}
@@ -344,15 +340,15 @@ test:
344340
tag: latest
345341

346342
orchestrator:
347-
enabled: true
343+
enabled: false
348344
rhdhPlugins: # RHDH plugins required for the Orchestrator
349345
npmRegistry: "" # NPM registry is defined already in the container, but sometimes the registry need to be modified to use different versions of the plugin, for example: staging(https://npm.stage.registry.redhat.com) or development repositories
350346

351347
serverlessLogicOperator:
352-
enabled: true # whether the operator resources are deployed
348+
enabled: false # whether the operator resources are deployed
353349

354350
serverlessOperator:
355-
enabled: true # whether the operator resources are deployed
351+
enabled: false # whether the operator resources are deployed
356352

357353
postgres:
358354
serviceName: "sonataflow-psql-postgresql" # The name of the Postgres DB service to be used by platform services. Cannot be empty.

charts/orchestrator-infra/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ maintainers:
1313
type: application
1414
sources:
1515
- https://github.com/redhat-developer/rhdh-chart
16-
version: 0.0.3
16+
version: 0.0.4

0 commit comments

Comments
 (0)