Skip to content

Commit

Permalink
lowercase names
Browse files Browse the repository at this point in the history
  • Loading branch information
arti-shalb committed Nov 13, 2023
1 parent 0274849 commit 2d92a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion huggingface-model/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: Helm chart for deploy Hugging Face to kubernetes cluster. See [Hugg

type: application

version: 0.0.21
version: 0.0.22

4 changes: 2 additions & 2 deletions huggingface-model/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Generate internal container port.
Expand the name of the chart.
*/}}
{{- define "huggingface-model.name" -}}
{{- default (default .Chart.Name .Values.nameOverride) .Values.model.name | trunc 63 | trimSuffix "-" | regexReplaceAll "\\W+" "-" }}
{{- default (default .Chart.Name .Values.nameOverride) .Values.model.name | trunc 63 | trimSuffix "-" | lower | regexReplaceAll "\\W+" "-" }}
{{- end }}

{{/*
Expand All @@ -35,7 +35,7 @@ If release name contains chart name it will be used as a full name.
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := (regexReplaceAll "\\W+" (default (default .Chart.Name .Values.nameOverride) .Values.model.name) "-") | trunc 63 | trimSuffix "-" }}
{{- $name := (regexReplaceAll "\\W+" (default (default .Chart.Name .Values.nameOverride) .Values.model.name) "-") | trunc 63 | trimSuffix "-" | lower }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand Down

0 comments on commit 2d92a57

Please sign in to comment.