116931bb51
* Rename common chart to helm-toolkit * Update useage of helpers to include reference to chart they come from. * Update helm-toolkit function naming Also catches several functions missed in previous PS * Update remaining requirements.yaml to use helm-toolbox * Dep Check container fix for common -> helm-toolbox renaming
23 lines
844 B
Smarty
23 lines
844 B
Smarty
# fqdn
|
|
{{- define "helm-toolkit.region"}}cluster{{- end}}
|
|
{{- define "helm-toolkit.tld"}}local{{- end}}
|
|
|
|
{{- define "helm-toolkit.fqdn" -}}
|
|
{{- $fqdn := .Release.Namespace -}}
|
|
{{- if .Values.endpoints.fqdn -}}
|
|
{{- $fqdn := .Values.endpoints.fqdn -}}
|
|
{{- end -}}
|
|
{{- $fqdn -}}
|
|
{{- end -}}
|
|
|
|
#-----------------------------------------
|
|
# hosts
|
|
#-----------------------------------------
|
|
|
|
# infrastructure services
|
|
{{- define "helm-toolkit.rabbitmq_host"}}memcached.{{.Release.Namespace}}.svc.{{ include "helm-toolkit.region" . }}.{{ include "helm-toolkit.tld" . }}{{- end}}
|
|
{{- define "helm-toolkit.mariadb_host"}}mariadb.{{.Release.Namespace}}.svc.{{ include "helm-toolkit.region" . }}.{{ include "helm-toolkit.tld" . }}{{- end}}
|
|
|
|
# nova defaults
|
|
{{- define "helm-toolkit.nova_metadata_host"}}nova-api.{{ include "helm-toolkit.fqdn" . }}{{- end}}
|