Skip to content

Commit

Permalink
add ats common named templates
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Dec 19, 2023
1 parent 5d38a54 commit 6eb91a5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions charts/alfresco-common/templates/_helpers-ats.tpl
Original file line number Diff line number Diff line change
@@ -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 -}}

0 comments on commit 6eb91a5

Please sign in to comment.