Skip to content

Commit

Permalink
DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
artntek committed Nov 30, 2023
1 parent 2d97201 commit f43d43f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ If connecting to an instance outside the cluster, should use https;
e.g. https://metacat-dev.test.dataone.org/metacat/d1/mn
*/}}
{{- define "idxworker.mn.url" -}}
{{- if not .Values.idxworker.mn_url }}
{{- $mn_url := .Values.idxworker.mn_url }}
{{- if not $mn_url }}
{{- printf "http://%s-hl:8080/%s/d1/mn" .Release.Name .Values.global.metacatAppContext }}
{{- else }}
{{- .Values.idxworker.mn_url }}
{{- $mn_url }}
{{- end }}
{{- end }}
Expand All @@ -82,10 +83,11 @@ Either use the value set in .Values.persistence.claimName, or if blank, autopopu
{podname}-metacat-{releaseName}-0 (e.g. metacatbrooke-metacat-metacatbrooke-0)
*/}}
{{- define "idxworker.shared.claimName" -}}
{{- if not .Values.persistence.claimName }}
{{- $claimName := .Values.persistence.claimName }}
{{- if not $claimName }}
{{- .Release.Name }}-metacat-{{- .Release.Name }}-0
{{- else }}
{{- .Values.persistence.claimName }}
{{- $claimName }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit f43d43f

Please sign in to comment.