mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-04-17 01:31:13 +00:00
Fixed: missing scheme
This commit is contained in:
parent
1fba44a796
commit
38a8a7109c
@ -160,6 +160,23 @@ Create configuration secret name
|
||||
{{- if .Values.clearml.existingSecret -}} {{ default "clearml-conf" .Values.clearml.existingSecret | quote }} {{- else -}} "clearml-conf" {{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
compose file url
|
||||
*/}}
|
||||
{{- define "clearml.fileUrl" -}}
|
||||
{{- if .Values.clearml.clientConfigurationFilesUrl }}
|
||||
{{- .Values.clearml.clientConfigurationFilesUrl }}
|
||||
{{- else if .Values.fileserver.ingress.enabled }}
|
||||
{{- $protocol := "http" }}
|
||||
{{- if .Values.fileserver.ingress.tlsSecretName }}
|
||||
{{- $protocol = "https" }}
|
||||
{{- end }}
|
||||
{{- printf "%s%s%s" $protocol "://" .Values.fileserver.ingress.hostName }}
|
||||
{{- else }}
|
||||
{{- printf "%s%s%s%s" "http://" (include "fileserver.referenceName" .) ":" .Values.fileserver.service.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Elasticsearch Service name
|
||||
*/}}
|
||||
@ -174,12 +191,19 @@ Elasticsearch Service port
|
||||
{{- .Values.elasticsearch.httpPort }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Elasticsearch Service schema
|
||||
*/}}
|
||||
{{- define "elasticsearch.servicescheme" -}}
|
||||
{{- .Values.elasticsearch.httpScheme }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Elasticsearch Comnnection string
|
||||
*/}}
|
||||
{{- define "elasticsearch.connectionstring" -}}
|
||||
{{- if .Values.elasticsearch.enabled }}
|
||||
{{- printf "[{\"host\":\"%s\",\"port\":%s}]" (include "elasticsearch.servicename" .) (include "elasticsearch.serviceport" .) | quote }}
|
||||
{{- printf "[{\"host\":\"%s\",\"port\":%s,\"scheme\":\"%s\"}]" (include "elasticsearch.servicename" .) (include "elasticsearch.serviceport" .) (include "elasticsearch.servicescheme" .) | quote }}
|
||||
{{- else }}
|
||||
{{- .Values.externalServices.elasticsearchConnectionString | quote }}
|
||||
{{- end }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user