Skip to content

Commit 0e3c5eb

Browse files
committed
Remove ingress.host from Well-Known Delegation
1 parent d4f4138 commit 0e3c5eb

File tree

5 files changed

+47
-7
lines changed

5 files changed

+47
-7
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"annotations": {
5+
"type": "object",
6+
"additionalProperties": {
7+
"type": [
8+
"string",
9+
"null"
10+
]
11+
}
12+
},
13+
"className": {
14+
"type": "string"
15+
},
16+
"tlsEnabled": {
17+
"type": "boolean"
18+
},
19+
"tlsSecret": {
20+
"type": "string"
21+
},
22+
"controllerType": {
23+
"type": "string",
24+
"enum": [
25+
"ingress-nginx"
26+
]
27+
},
28+
"service": {
29+
"type": "object",
30+
"properties": {
31+
"type": {
32+
"type": "string",
33+
"enum": [
34+
"ClusterIP",
35+
"NodePort",
36+
"LoadBalancer"
37+
]
38+
}
39+
}
40+
}
41+
}
42+
}

charts/matrix-stack/source/wellKnownDelegation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "boolean"
88
},
99
"ingress": {
10-
"$ref": "file://common/ingress.json"
10+
"$ref": "file://common/ingress_without_host.json"
1111
},
1212
"labels": {
1313
"$ref": "file://common/labels.json"

charts/matrix-stack/templates/well-known/ingress.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- /*
2-
Copyright 2024 New Vector Ltd
2+
Copyright 2024-2025 New Vector Ltd
33

44
SPDX-License-Identifier: AGPL-3.0-only
55
*/ -}}
@@ -15,10 +15,10 @@ metadata:
1515
name: {{ $.Release.Name }}-well-known
1616
namespace: {{ $.Release.Namespace }}
1717
spec:
18-
{{- include "element-io.ess-library.ingress.tls" (dict "root" $ "context" (dict "host" (.ingress.host | default $.Values.serverName) "ingress" .ingress "ingressName" "well-known")) | nindent 2 }}
18+
{{- include "element-io.ess-library.ingress.tls" (dict "root" $ "context" (dict "host" $.Values.serverName "ingress" .ingress "ingressName" "well-known")) | nindent 2 }}
1919
{{- include "element-io.ess-library.ingress.className" (dict "root" $ "context" .ingress.className) | nindent 2 }}
2020
rules:
21-
- host: "{{ tpl ($.Values.wellKnownDelegation.ingress.host | default $.Values.serverName) $ }}"
21+
- host: "{{ tpl $.Values.serverName $ }}"
2222
http:
2323
paths:
2424
{{- if and .baseDomainRedirect.enabled (or $.Values.elementWeb.enabled .baseDomainRedirect.url) }}

charts/matrix-stack/values.schema.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10243,9 +10243,6 @@
1024310243
]
1024410244
}
1024510245
},
10246-
"host": {
10247-
"type": "string"
10248-
},
1024910246
"className": {
1025010247
"type": "string"
1025110248
},

newsfragments/467.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove wellKnownDelegation.ingress.host from values.yaml as serverName is used for the well-known Ingress.

0 commit comments

Comments
 (0)