Skip to content

Commit c52067c

Browse files
author
mway-niels
authored
Made ingressRoute.tls.secretName optional (#21)
1 parent ea822bf commit c52067c

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

charts/relution/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ maintainers:
88

99
type: application
1010

11-
version: 2.4.5-1
11+
version: 2.4.6-1
1212

1313
appVersion: "5.26.4"
1414

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ingressRoute:
2+
enabled: true
3+
defaultRoute:
4+
host: '{{ .Values.relution.config.relution.server.externalURL | replace "https://" "" }}'
5+
tls:
6+
enabled: true
7+
8+
relution:
9+
config:
10+
relution:
11+
server:
12+
externalURL: https://test.relution.io
13+
database:
14+
type: mariadb
15+
url: jdbc:mariadb://mariadb:3306/relution
16+
username: relution
17+
password: relution
18+
19+
mariadb:
20+
enabled: true
21+
fullnameOverride: mariadb
22+
auth:
23+
rootPassword: relution
24+
username: relution
25+
password: relution
26+
database: relution
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ingressRoute:
2+
enabled: true
3+
defaultRoute:
4+
host: '{{ .Values.relution.config.relution.server.externalURL | replace "https://" "" }}'
5+
6+
relution:
7+
config:
8+
relution:
9+
server:
10+
externalURL: https://test.relution.io
11+
database:
12+
type: mariadb
13+
url: jdbc:mariadb://mariadb:3306/relution
14+
username: relution
15+
password: relution
16+
17+
mariadb:
18+
enabled: true
19+
fullnameOverride: mariadb
20+
auth:
21+
rootPassword: relution
22+
username: relution
23+
password: relution
24+
database: relution

charts/relution/templates/ingressroute.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,21 @@ spec:
5151
{{- with .Values.ingressRoute.tls }}
5252
{{- if .enabled }}
5353
tls:
54-
secretName: {{ required "ingressRoute.tls.secretName is required!" .secretName }}
54+
{{- if .secretName }}
55+
secretName: {{ .secretName }}
56+
{{- end }}
5557
{{- if .certResolver }}
5658
certResolver: {{ .certResolver }}
5759
{{- end }}
60+
{{- if .domains }}
5861
domains:
5962
{{- range .domains }}
6063
- main: {{ required "ingressRoute.tls.domains[*].main is required!" .main }}
6164
{{- with .sans }}
6265
sans: {{ toYaml . | nindent 10 }}
6366
{{- end }}
6467
{{- end }}
68+
{{- end }}
6569
{{- end }}
6670
{{- end }}
6771
{{- end }}

0 commit comments

Comments
 (0)