Skip to content

Commit

Permalink
OPSEXP-2293: add ATS common templates (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Dec 20, 2023
1 parent 390b7b0 commit f008d9d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |
A helper subchart to avoid duplication in alfresco charts and set common
external dependencies
type: library
version: 3.0.0
version: 3.1.0
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
2 changes: 1 addition & 1 deletion charts/alfresco-common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-common

![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 3.1.0](https://img.shields.io/badge/Version-3.1.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)

A helper subchart to avoid duplication in alfresco charts and set common
external dependencies
Expand Down
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 f008d9d

Please sign in to comment.