Skip to content

Commit e80b88d

Browse files
chore: Cherry pick pr #620 to release 2.1 (#625)
* chore: Updating hardcoded backend service port for Ingress & HTTPRoute templates (#620) cherry-picking to release 2.1 Signed-off-by: Leanne Ahern <lahern@redhat.com> (cherry picked from commit 3ca205e) * fix: resolve cherry-pick conflicts for release-2.1 Keep release-2.1 chart versioning (3.4.7 / appVersion 2.1.0) and next-2.1 image tag while retaining the port-override README docs. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Signed-off-by: Leanne Ahern <lahern@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1308f01 commit e80b88d

7 files changed

Lines changed: 84 additions & 7 deletions

File tree

‎charts/rhdh/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: redhat-developer-hub
33
type: application
4-
version: 3.4.6
4+
version: 3.4.7
55
appVersion: 2.1.0
66
annotations:
77
artifacthub.io/category: integration-delivery

‎charts/rhdh/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# RHDH Helm Chart for OpenShift and Kubernetes
33

4-
![Version: 3.4.6](https://img.shields.io/badge/Version-3.4.6-informational?style=flat-square)
4+
![Version: 3.4.7](https://img.shields.io/badge/Version-3.4.7-informational?style=flat-square)
55
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
66

77
A Helm chart for deploying Red Hat Developer Hub, which is a Red Hat supported version of Backstage.
@@ -36,7 +36,7 @@ For the **Generally Available** version of this chart, see:
3636
helm repo add bitnami https://charts.bitnami.com/bitnami
3737
helm repo add redhat-developer https://redhat-developer.github.io/rhdh-chart
3838

39-
helm install my-rhdh redhat-developer/redhat-developer-hub --version 3.4.6
39+
helm install my-rhdh redhat-developer/redhat-developer-hub --version 3.4.7
4040
```
4141

4242
## Introduction
@@ -244,10 +244,12 @@ Kubernetes: `>= 1.31.0-0`
244244
| hostAliases | Host aliases for /etc/hosts entries. | list | `[]` |
245245
| httpRoute | Gateway API HTTPRoute configuration. | object | `{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[],"rules":[]}` |
246246
| httpRoute.labels | Additional labels for the HTTPRoute resource. | object | `{}` |
247+
| httpRoute.rules | HTTPRoute rules. Each rule may set option `port` (backend service port). Defaults to `service.port` when omitted. | list | `[]` |
247248
| image | Container image configuration. | object | `{"digest":"","pullPolicy":"IfNotPresent","registry":"quay.io","repository":"rhdh-community/rhdh","tag":"next-2.1"}` |
248249
| image.digest | Overrides the image tag with an image digest. | string | `""` |
249250
| imagePullSecrets | Secrets for pulling images from private registries (merged with global.imagePullSecrets). | list | `[]` |
250251
| ingress | Kubernetes Ingress configuration. | object | `{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"{{ .Values.host }}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` |
252+
| ingress.hosts | Ingress hosts. Each path may set option `port` (backend service port). Defaults to `service.port` when omitted (e.g. use `4180` for an oauth2-proxy sidecar). | list | `[{"host":"{{ .Values.host }}","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]` |
251253
| intelligentAssistant | Built-in Intelligent Assistant feature configuration. | object | `{"config":{"profile":{"existingConfigMap":{"key":"","name":""}},"stack":{"existingConfigMap":{"key":"","name":""}}},"core":{"argsOverride":[],"commandOverride":[],"extraArgs":[],"extraEnv":[],"extraVolumeMounts":[],"image":{"digest":"","registry":"quay.io","repository":"lightspeed-core/lightspeed-stack","tag":"0.7.0"},"imagePullPolicy":"IfNotPresent","resources":{"limits":{"cpu":"1000m","memory":"2Gi"},"requests":{"cpu":"100m","memory":"512Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}},"enabled":true,"existingSecret":"","okp":{"affinity":{},"enabled":false,"httpd":{"compressed":"true","encrypt":"false","serverName":"localhost"},"image":{"digest":"","pullPolicy":"IfNotPresent","registry":"registry.redhat.io","repository":"offline-knowledge-portal/rhokp-rhel9","tag":"1.2.12-1788274041"},"imagePullSecrets":[],"ingress":{"annotations":{},"className":"","enabled":true,"host":"","tls":{"enabled":false,"secretName":""}},"livenessProbe":{"initialDelaySeconds":30,"periodSeconds":30},"nodeSelector":{},"readinessProbe":{"initialDelaySeconds":10,"periodSeconds":10},"replicaCount":1,"resources":{"limits":{"cpu":"2","memory":"4Gi"},"requests":{"cpu":"200m","memory":"2Gi"}},"route":{"enabled":true,"tls":{"insecureEdgeTerminationPolicy":"Redirect","termination":"edge"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}},"service":{"type":"ClusterIP"},"solr":{"hostBind":"0.0.0.0","memory":"1g"},"tolerations":[],"topologySpreadConstraints":[]},"plugins":[{"enabled":true,"package":"ref://red-hat-developer-hub-backstage-plugin-intelligent-assistant"},{"enabled":true,"package":"ref://red-hat-developer-hub-backstage-plugin-intelligent-assistant-backend"}],"runtimeVolume":{"emptyDir":{},"persistentVolumeClaim":{},"type":"emptyDir"}}` |
252254
| intelligentAssistant.config | Configuration files mounted into the sidecar. By default, the chart creates ConfigMaps from bundled source files. Set existingConfigMap to use a pre-existing ConfigMap instead. | object | `{"profile":{"existingConfigMap":{"key":"","name":""}},"stack":{"existingConfigMap":{"key":"","name":""}}}` |
253255
| intelligentAssistant.config.profile | Python profile with prompt templates (rhdh-profile.py). | object | `{"existingConfigMap":{"key":"","name":""}}` |

‎charts/rhdh/templates/httproute.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ spec:
4747
{{- end }}
4848
backendRefs:
4949
- name: {{ $fullName }}
50-
port: {{ $svcPort }}
50+
port: {{ .port | default $svcPort }}
5151
weight: 1
5252
{{- end }}
5353
{{- end }}

‎charts/rhdh/templates/ingress.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
service:
4343
name: {{ include "rhdh.fullname" $ }}
4444
port:
45-
number: {{ $.Values.service.port }}
45+
number: {{ .port | default $.Values.service.port }}
4646
{{- end }}
4747
{{- end }}
4848
{{- end }}

‎charts/rhdh/values.schema.json‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,15 @@
687687
},
688688
"rules": {
689689
"default": [],
690+
"items": {
691+
"properties": {
692+
"port": {
693+
"title": "Optional backend service port override for this rule.",
694+
"type": "integer"
695+
}
696+
},
697+
"type": "object"
698+
},
690699
"title": "HTTPRoute rules.",
691700
"type": "array"
692701
}
@@ -774,6 +783,32 @@
774783
]
775784
}
776785
],
786+
"items": {
787+
"properties": {
788+
"host": {
789+
"type": "string"
790+
},
791+
"paths": {
792+
"items": {
793+
"properties": {
794+
"path": {
795+
"type": "string"
796+
},
797+
"pathType": {
798+
"type": "string"
799+
},
800+
"port": {
801+
"title": "Optional backend service port override for this path.",
802+
"type": "integer"
803+
}
804+
},
805+
"type": "object"
806+
},
807+
"type": "array"
808+
}
809+
},
810+
"type": "object"
811+
},
777812
"title": "Ingress hosts.",
778813
"type": "array"
779814
},

‎charts/rhdh/values.schema.tmpl.json‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,33 @@
258258
"hosts": {
259259
"title": "Ingress hosts.",
260260
"type": "array",
261-
"default": []
261+
"default": [],
262+
"items": {
263+
"type": "object",
264+
"properties": {
265+
"host": {
266+
"type": "string"
267+
},
268+
"paths": {
269+
"type": "array",
270+
"items": {
271+
"type": "object",
272+
"properties": {
273+
"path": {
274+
"type": "string"
275+
},
276+
"pathType": {
277+
"type": "string"
278+
},
279+
"port": {
280+
"title": "Optional backend service port override for this path.",
281+
"type": "integer"
282+
}
283+
}
284+
}
285+
}
286+
}
287+
}
262288
},
263289
"tls": {
264290
"title": "Ingress TLS configuration.",
@@ -300,7 +326,16 @@
300326
"rules": {
301327
"title": "HTTPRoute rules.",
302328
"type": "array",
303-
"default": []
329+
"default": [],
330+
"items": {
331+
"type": "object",
332+
"properties": {
333+
"port": {
334+
"title": "Optional backend service port override for this rule.",
335+
"type": "integer"
336+
}
337+
}
338+
}
304339
}
305340
}
306341
},

‎charts/rhdh/values.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,14 @@ ingress:
420420
enabled: false
421421
className: ""
422422
annotations: {}
423+
# -- Ingress hosts. Each path may set option `port` (backend service port).
424+
# Defaults to `service.port` when omitted (e.g. use `4180` for an oauth2-proxy sidecar).
423425
hosts:
424426
- host: "{{ .Values.host }}"
425427
paths:
426428
- path: "/"
427429
pathType: "ImplementationSpecific"
430+
# port: 4180
428431
tls: []
429432

430433
# -- Gateway API HTTPRoute configuration.
@@ -435,6 +438,8 @@ httpRoute:
435438
annotations: {}
436439
parentRefs: []
437440
hostnames: []
441+
# -- HTTPRoute rules. Each rule may set option `port` (backend service port).
442+
# Defaults to `service.port` when omitted.
438443
rules: []
439444

440445
# ── OpenShift ───────────────────────────────────────────────

0 commit comments

Comments
 (0)