Skip to content

Instantly share code, notes, and snippets.

@kayleemchugh
Created April 22, 2025 20:35
Show Gist options
  • Save kayleemchugh/435b8ca2ae6ba664ff1611fa1f6606c7 to your computer and use it in GitHub Desktop.
Save kayleemchugh/435b8ca2ae6ba664ff1611fa1f6606c7 to your computer and use it in GitHub Desktop.
Use Helper Functions
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "mlflow.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment