@@ -57,7 +57,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
5757Init script ConfigMap name
5858*/ }}
5959{{- define " graylog.cm.init.name" }}
60- {{- include " graylog.fullname" . | printf " %s -init-cm" }}
60+ {{- include " graylog.fullname" . | printf " %s -init-cm" | trunc 63 | trimSuffix " - " }}
6161{{- end }}
6262
6363{{/*
@@ -66,7 +66,7 @@ Service account name
6666{{- define " graylog.serviceAccountName" }}
6767{{- $defaultName := " default" }}
6868{{- if .Values.serviceAccount.create }}
69- {{- $defaultName = include " graylog.fullname" . | printf " %s -sa" }}
69+ {{- $defaultName = include " graylog.fullname" . | printf " %s -sa" | trunc 63 | trimSuffix " - " }}
7070{{- end }}
7171{{- .Values.serviceAccount.nameOverride | default $defaultName }}
7272{{- end }}
@@ -77,7 +77,7 @@ MongoDB service account name
7777{{- define " graylog.mongodb.serviceAccountName" }}
7878{{- $defaultName := " default" }}
7979{{- if .Values.mongodb.serviceAccount.create }}
80- {{- $defaultName = include " graylog.fullname" . | printf " %s -mongo-sa" }}
80+ {{- $defaultName = include " graylog.fullname" . | printf " %s -mongo-sa" | trunc 63 | trimSuffix " - " }}
8181{{- end }}
8282{{- .Values.mongodb.serviceAccount.nameOverride | default $defaultName }}
8383{{- end }}
@@ -166,7 +166,7 @@ Graylog secret pepper
166166Graylog secret name
167167*/ }}
168168{{- define " graylog.secretsName" -}}
169- {{- $defaultName := include " graylog.fullname" . | printf " %s -secrets" }}
169+ {{- $defaultName := include " graylog.fullname" . | printf " %s -secrets" | trunc 63 | trimSuffix " - " }}
170170{{- if .Values.global.existingSecretName }}
171171{{- $defaultName = .Values.global.existingSecretName }}
172172{{- end }}
@@ -177,21 +177,21 @@ Graylog secret name
177177Graylog Datanode secret name
178178*/ }}
179179{{- define " graylog.datanode.secretsName" -}}
180- {{- include " graylog.secretsName" . | printf " %s -datanode" }}
180+ {{- include " graylog.secretsName" . | printf " %s -datanode" | trunc 63 | trimSuffix " - " }}
181181{{- end }}
182182
183183{{/*
184184Graylog backup-secret name
185185*/ }}
186186{{- define " graylog.backupSecretName" -}}
187- {{- include " graylog.fullname" . | printf " %s -backup-secret" }}
187+ {{- include " graylog.fullname" . | printf " %s -backup-secret" | trunc 63 | trimSuffix " - " }}
188188{{- end }}
189189
190190{{/*
191191MongoDB Community Resource name
192192*/ }}
193193{{- define " graylog.mongodb.crName" -}}
194- {{- include " graylog.fullname" . | printf " %s -mongo-rs" }}
194+ {{- include " graylog.fullname" . | printf " %s -mongo-rs" | trunc 63 | trimSuffix " - " }}
195195{{- end }}
196196
197197{{/*
@@ -222,7 +222,7 @@ MongoDB Community Resource Secret name
222222Graylog service name
223223*/ }}
224224{{- define " graylog.service.name" -}}
225- {{- $defaultName := include " graylog.fullname" . | printf " %s -svc" }}
225+ {{- $defaultName := include " graylog.fullname" . | printf " %s -svc" | trunc 63 | trimSuffix " - " }}
226226{{- .Values.graylog.service.nameOverride | default $defaultName }}
227227{{- end }}
228228
@@ -237,29 +237,29 @@ Graylog service app port
237237Graylog configmap name
238238*/ }}
239239{{- define " graylog.configmap.name" -}}
240- {{- include " graylog.fullname" . | printf " %s -config" }}
240+ {{- include " graylog.fullname" . | printf " %s -config" | trunc 63 | trimSuffix " - " }}
241241{{- end }}
242242
243243{{/*
244244Graylog data PVC/volume name
245245*/ }}
246246{{- define " graylog.volume.name" -}}
247- {{- $defaultName := include " graylog.fullname" . | printf " %s -data" }}
247+ {{- $defaultName := include " graylog.fullname" . | printf " %s -data" | trunc 63 | trimSuffix " - " }}
248248{{- .Values.graylog.persistence.volumeNameOverride | default $defaultName }}
249249{{- end }}
250250
251251{{/*
252252Graylog Datanode pod prefix
253253*/ }}
254254{{- define " graylog.datanode.name" -}}
255- {{- include " graylog.fullname" . | printf " %s -datanode" }}
255+ {{- include " graylog.fullname" . | printf " %s -datanode" | trunc 63 | trimSuffix " - " }}
256256{{- end }}
257257
258258{{/*
259259Graylog Datanode service name
260260*/ }}
261261{{- define " graylog.datanode.service.name" -}}
262- {{- include " graylog.fullname" . | printf " %s -datanode-svc" }}
262+ {{- include " graylog.fullname" . | printf " %s -datanode-svc" | trunc 63 | trimSuffix " - " }}
263263{{- end }}
264264
265265{{/*
@@ -277,15 +277,15 @@ Graylog Datanode hosts
277277Datanode configmap name
278278*/ }}
279279{{- define " graylog.datanode.configmap.name" -}}
280- {{- include " graylog.fullname" . | printf " %s -datanode-config" }}
280+ {{- include " graylog.fullname" . | printf " %s -datanode-config" | trunc 63 | trimSuffix " - " }}
281281{{- end }}
282282
283283{{/*
284284Provider-defined Storage Class name
285285*/ }}
286286{{- define " graylog.provider.storageClassName" }}
287287{{- $names := dict }}
288- {{- $_ := include " graylog.fullname" . | printf " %s -gp3" | set $names " aws" -}}
288+ {{- $_ := include " graylog.fullname" . | printf " %s -gp3" | trunc 63 | trimSuffix " - " | set $names " aws" -}}
289289{{/* add more entries here */ }}
290290{{- .Values.provider | default " " | get $names }}
291291{{- end }}
@@ -469,14 +469,14 @@ Graylog Java Options
469469Ingress name
470470*/ }}
471471{{- define " graylog.ingress.web.name" }}
472- {{- include " graylog.fullname" . | printf " %s -web" }}
472+ {{- include " graylog.fullname" . | printf " %s -web" | trunc 63 | trimSuffix " - " }}
473473{{- end }}
474474
475475{{/*
476476Cert-manager issuer name
477477*/ }}
478478{{- define " graylog.cert-manager.issuer.name" }}
479- {{- include " graylog.fullname" . | printf " %s -letsencrypt" }}
479+ {{- include " graylog.fullname" . | printf " %s -letsencrypt" | trunc 63 | trimSuffix " - " }}
480480{{- end }}
481481
482482{{/*
0 commit comments