Skip to content

Commit 7b0ef1b

Browse files
jaredgorskibrianchandotcom
authored andcommitted
LCD-51304 Make this a standalone change
1 parent 03f449b commit 7b0ef1b

3 files changed

Lines changed: 0 additions & 21 deletions

File tree

cloud/helm/default/templates/_helpers.tpl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@
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" . }}
3626
app.kubernetes.io/managed-by: {{ .Release.Service }}

cloud/helm/default/templates/_statefulset.tpl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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
---
182181
apiVersion: gateway.envoyproxy.io/v1alpha1
183182
kind: BackendTrafficPolicy
@@ -211,18 +210,9 @@ metadata:
211210
namespace: {{ include "liferay.namespace" $.root }}
212211
spec:
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 }}

cloud/helm/default/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ network:
268268
forceHttpsRedirect: false
269269
gatewayName: ""
270270
hostnames: []
271-
perHostnameRoutes: false
272271
securityPolicyAuthorizationSpec: {}
273272
timeouts: {}
274273
networkPolicy:

0 commit comments

Comments
 (0)