2021-06-10 12:49:42 +00:00
|
|
|
{{/*
|
|
|
|
Construct the path for the providers.kubernetesingress.ingressendpoint.publishedservice.
|
|
|
|
By convention this will simply use the <namespace>/<service-name> to match the name of the
|
|
|
|
service generated.
|
|
|
|
Users can provide an override for an explicit service they want bound via `.Values.providers.kubernetesIngress.publishedService.pathOverride`
|
|
|
|
*/}}
|
|
|
|
{{- define "providers.kubernetesIngress.publishedServicePath" -}}
|
2022-06-07 17:41:19 +00:00
|
|
|
{{- $fullName := include "tc.common.names.fullname" . -}}
|
2021-09-04 19:34:09 +00:00
|
|
|
{{- $defServiceName := printf "%s/%s-tcp" .Release.Namespace $fullName -}}
|
2021-06-10 12:49:42 +00:00
|
|
|
{{- $servicePath := default $defServiceName .Values.providers.kubernetesIngress.publishedService.pathOverride }}
|
|
|
|
{{- print $servicePath | trimSuffix "-" -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
Construct a comma-separated list of whitelisted namespaces
|
|
|
|
*/}}
|
|
|
|
{{- define "providers.kubernetesIngress.namespaces" -}}
|
|
|
|
{{- default .Release.Namespace (join "," .Values.providers.kubernetesIngress.namespaces) }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- define "providers.kubernetesCRD.namespaces" -}}
|
|
|
|
{{- default .Release.Namespace (join "," .Values.providers.kubernetesCRD.namespaces) }}
|
|
|
|
{{- end -}}
|