Skip to content

Commit

Permalink
Update _helpers.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
tripathishikha1 authored Jun 25, 2024
1 parent e05c963 commit 533a1c2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions charts/microservice/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{{- define "microservice.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "microservice.fullname" -}}
{{- $name := include "microservice.name" . -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" $name .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- printf "%s-%s" (include "microservice.name" .) .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "microservice.labels" -}}
app: {{ include "microservice.name" . }}
app: {{ include "microservice.name" . }}
{{- end -}}

{{- define "microservice.selectorLabels" -}}
app: {{ include "microservice.name" . }}
app: {{ include "microservice.name" . }}
{{- end -}}

0 comments on commit 533a1c2

Please sign in to comment.