From 6eb91a5eb84e4523dfa99da9ee07a093eb630cfa Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Tue, 19 Dec 2023 20:32:33 +0100 Subject: [PATCH] add ats common named templates --- .../templates/_helpers-ats.tpl | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 charts/alfresco-common/templates/_helpers-ats.tpl diff --git a/charts/alfresco-common/templates/_helpers-ats.tpl b/charts/alfresco-common/templates/_helpers-ats.tpl new file mode 100644 index 00000000..4c3dd31c --- /dev/null +++ b/charts/alfresco-common/templates/_helpers-ats.tpl @@ -0,0 +1,25 @@ +{{/* + +Render Alfresco Transform Service Router URL + +Usage: include "alfresco-common.transform.fullurl" "URL" + +*/}} +{{- define "alfresco-common.ats.fullurl" -}} +{{- $scheme := include "alfresco-common.url.scheme" . }} +{{- $host := include "alfresco-common.url.host" . }} +{{- printf "%s://%s/transform/config" $scheme $host }} +{{- end -}} + +{{/* + +Render Alfresco Transform ServiceShared Filestore URL + +Usage: include "alfresco-common.sfs.fullurl" "URL" + +*/}} +{{- define "alfresco-common.sfs.fullurl" -}} +{{- $scheme := include "alfresco-common.url.scheme" . }} +{{- $host := include "alfresco-common.url.host" . }} +{{- printf "%s://%s/alfresco/api/-default-/private/sfs/versions/1/file/" $scheme $host }} +{{- end -}}