Skip to content

Commit

Permalink
move & rename mq templates from repo to comon to be reused
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Oct 18, 2023
1 parent 874cf59 commit 23468b8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/alfresco-common/templates/_helpers-activemq.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
{{/*
Validate ActiveMQ has a failover transport URL
Usage: include "alfresco-common.activemq.url.valid" "URL"
*/}}
{{- define "alfresco-common.activemq.url.valid" -}}
{{- if hasPrefix "failover:(" . }}
{{- . }}
{{- else -}}
{{- printf "failover:(%s)" . }}
{{- end }}
{{- end -}}

{{/*
Render ActiveMQ broker configmap
Usage: include "alfresco-common.activemq.cm" "URL"
*/}}
{{- define "alfresco-common.activemq.cm" -}}
BROKER_URL: {{ template "alfresco-common.activemq.url.valid" . }}
{{- end -}}

{{/*
Provide generic ActiveMQ env vars
Expand Down

0 comments on commit 23468b8

Please sign in to comment.