You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## At least one Alfresco hostname should be specified.
10
+
{{- if eq (len $allAlfrescoHostNames) 0}}
11
+
{{- fail "No host specified for the Alfresco Ingress controller. Please specify the 'values.ingress.hosts' property (list of hostnames)." }}
12
+
{{- end }}
13
+
2
14
apiVersion: networking.k8s.io/v1
3
15
kind: Ingress
4
16
metadata:
@@ -29,7 +41,9 @@ spec:
29
41
tls:
30
42
- hosts:
31
43
# Provide the desired host
32
-
- {{ required "A host where your alfresco services can be reached on must be specified in values.ingress.host" .Values.ingress.host }}
44
+
{{- range $allAlfrescoHostNames}}
45
+
- {{ . | quote }}
46
+
{{- end }}
33
47
{{- if .Values.syncService.enabled }}
34
48
- {{ required "If sync Services are enabled a specific host for sync services must be specified in values.ingress.syncServiceHost" .Values.ingress.syncServiceHost }}
35
49
{{- end }}
@@ -44,27 +58,28 @@ spec:
44
58
number: {{ .Values.ingress.defaultBackend.port }}
45
59
{{- end }}
46
60
rules:
47
-
- host: {{ required "A host where your alfresco services can be reached on must be specified in values.ingress.host" .Values.ingress.host }}
61
+
{{- range $allAlfrescoHostNames }}
62
+
- host: {{ . | quote }}
48
63
http:
49
64
paths:
50
-
{{- if .Values.general.hibernate }}
65
+
{{- if $.Values.general.hibernate }}
51
66
- path: /
52
67
pathType: Prefix
53
68
backend:
54
69
service:
55
70
name: nginx-default-service
56
71
port:
57
72
number: 30403
58
-
{{- else if .Values.ingress.defaultPath }}
73
+
{{- else if $.Values.ingress.defaultPath }}
59
74
- path: /
60
75
pathType: Prefix
61
76
backend:
62
77
service:
63
-
name: {{ .Values.ingress.defaultPath.service }}
78
+
name: {{ $.Values.ingress.defaultPath.service }}
64
79
port:
65
-
number: {{ .Values.ingress.defaultPath.port }}
80
+
number: {{ $.Values.ingress.defaultPath.port }}
66
81
{{- end }}
67
-
{{- if and .Values.acs.ingress.enabled (not .Values.general.hibernate) }}
82
+
{{- if and $.Values.acs.ingress.enabled (not $.Values.general.hibernate) }}
68
83
- path: /alfresco
69
84
pathType: Prefix
70
85
backend:
@@ -73,7 +88,7 @@ spec:
73
88
port:
74
89
number: 30000
75
90
{{- end }}
76
-
{{- if and .Values.share.enabled .Values.share.ingress.enabled (not .Values.general.hibernate) }}
91
+
{{- if and $.Values.share.enabled $.Values.share.ingress.enabled (not $.Values.general.hibernate) }}
77
92
- path: /share
78
93
pathType: Prefix
79
94
backend:
@@ -82,16 +97,16 @@ spec:
82
97
port:
83
98
number: 30100
84
99
{{- end }}
85
-
{{- if and .Values.digitalWorkspace.enabled .Values.digitalWorkspace.ingress.enabled (not .Values.general.hibernate) }}
86
-
- path: {{ .Values.digitalWorkspace.basePath }}
100
+
{{- if and $.Values.digitalWorkspace.enabled $.Values.digitalWorkspace.ingress.enabled (not $.Values.general.hibernate) }}
101
+
- path: {{ $.Values.digitalWorkspace.basePath }}
87
102
pathType: Prefix
88
103
backend:
89
104
service:
90
105
name: digital-workspace-service
91
106
port:
92
107
number: 30200
93
108
{{- end }}
94
-
{{- if and .Values.ooi.enabled .Values.ooi.ingress.enabled (not .Values.general.hibernate) }}
109
+
{{- if and $.Values.ooi.enabled $.Values.ooi.ingress.enabled (not $.Values.general.hibernate) }}
95
110
- path: /ooi-service
96
111
pathType: Prefix
97
112
backend:
@@ -100,8 +115,8 @@ spec:
100
115
port:
101
116
number: 30500
102
117
{{- end }}
103
-
{{- if .Values.ingress.blockedPaths.enabled }}
104
-
{{- range .Values.ingress.blockedPaths.paths }}
118
+
{{- if $.Values.ingress.blockedPaths.enabled }}
119
+
{{- range $.Values.ingress.blockedPaths.paths }}
105
120
- path: {{ . }}
106
121
pathType: Prefix
107
122
backend:
@@ -111,9 +126,10 @@ spec:
111
126
number: 30403
112
127
{{- end }}
113
128
{{- end }}
114
-
{{- if and .Values.ingress.additionalPaths (not .Values.general.hibernate) }}
{{- if and .Values.syncService.enabled (not .Values.general.hibernate) }}
118
134
- host: {{ required "If sync Services are enabled a specific host for sync services must be specified in values.ingress.syncServiceHost" .Values.ingress.syncServiceHost }}
0 commit comments