Skip to content

Commit f3a47e7

Browse files
authored
MLE-14323 Helm 2.0 Functions and Bug fixes (#251)
1 parent 4b22ef4 commit f3a47e7

File tree

6 files changed

+213
-204
lines changed

6 files changed

+213
-204
lines changed

charts/templates/_helpers.tpl

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ oldFullname is the name used before 1.1.x release
6868
{{- end }}
6969
{{- end }}
7070

71-
{{/*
72-
{{- end }}
73-
{{- end }}
7471

7572
{{/*
7673
Create a default fully qualified app name.
@@ -148,6 +145,23 @@ app.kubernetes.io/name: {{ include "marklogic.name" . }}
148145
app.kubernetes.io/instance: {{ .Release.Name }}
149146
{{- end }}
150147

148+
{{- define "marklogic.annotations" -}}
149+
marklogic.com/group-name: {{ .Values.group.name | quote }}
150+
marklogic.com/group-xdqp-enabled: {{ .Values.group.enableXdqpSsl | quote }}
151+
marklogic.com/cluster-name: {{ include "marklogic.clusterName" . }}
152+
app.kubernetes.io/name: "marklogic"
153+
marklogic.com/fqdn: {{ include "marklogic.fqdn" . }}
154+
{{- end }}
155+
156+
{{- define "marklogic.clusterName" -}}
157+
{{- $bootStrapHost := trim .Values.bootstrapHostName }}
158+
{{- if ne $bootStrapHost "" -}}
159+
{{ .Values.bootstrapHostName }}
160+
{{- else -}}
161+
{{ include "marklogic.fqdn" . }}
162+
{{- end }}
163+
{{- end }}
164+
151165
{{/*
152166
Create the name of the service account to use
153167
*/}}

0 commit comments

Comments
 (0)