File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121{{- end }}
2222{{- end }}
2323
24- {{- define " liferay.hostnameSlug" -}}
25- {{- $hostname := . | lower -}}
26- {{- $sanitized := $hostname | replace " *" " wildcard" | replace " ." " -" | trimPrefix " -" | trimSuffix " -" -}}
27- {{- if gt (len $sanitized ) 50 -}}
28- {{- $hash := sha256sum $hostname | trunc 8 -}}
29- {{- $sanitized = printf " %s -%s " (trunc 41 $sanitized | trimSuffix " -" ) $hash -}}
30- {{- end -}}
31- {{- $sanitized -}}
32- {{- end -}}
33-
3424{{- define " liferay.labels" -}}
3525{{ include " liferay.selectorLabels" . }}
3626app.kubernetes.io /managed-by: {{ .Release.Service }}
Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ spec:
177177 {{- end }}
178178 {{- end }}
179179{{- if and .statefulset.network .statefulset.network.enabled }}
180- {{- $perHost := and .statefulset.network.perHostnameRoutes (gt (len .statefulset.network.hostnames ) 0) }}
181180---
182181apiVersion: gateway.envoyproxy.io /v1alpha1
183182kind: BackendTrafficPolicy
@@ -211,18 +210,9 @@ metadata:
211210 namespace: {{ include " liferay.namespace" $ .root }}
212211spec:
213212 targetRefs:
214- {{- if $perHost }}
215- {{- range $hostname := $ .statefulset.network.hostnames }}
216- {{- $slug := include " liferay.hostnameSlug" $hostname }}
217- - group: gateway.networking.k8s.io
218- kind: HTTPRoute
219- name: {{ include " liferay.name" $ .root }}-httproute-{{ $slug }}
220- {{- end }}
221- {{- else }}
222213 - group: gateway.networking.k8s.io
223214 kind: HTTPRoute
224215 name: {{ include " liferay.name" $ .root }}-httproute
225- {{- end }}
226216 authorization:
227217 {{- toYaml . | nindent 8 }}
228218{{- end }}
Original file line number Diff line number Diff line change @@ -268,7 +268,6 @@ network:
268268 forceHttpsRedirect : false
269269 gatewayName : " "
270270 hostnames : []
271- perHostnameRoutes : false
272271 securityPolicyAuthorizationSpec : {}
273272 timeouts : {}
274273networkPolicy :
You can’t perform that action at this time.
0 commit comments