Skip to content

Commit

Permalink
Remove boilerplate common helpers (#18)
Browse files Browse the repository at this point in the history
* fix: remove common dependency _helpers.tpl

* fix: remove Chart.lock (no deps)
  • Loading branch information
almog8k authored Oct 14, 2024
1 parent 2ae3c45 commit 901b45a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
6 changes: 0 additions & 6 deletions helm/Chart.lock

This file was deleted.

17 changes: 3 additions & 14 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ Return the proper Docker Image Registry Secret Names
{{- end -}}
{{/*
Return the proper image pullPolicy
*/}}
{{- define "overseer.pullPolicy" -}}
{{ include "common.images.pullPolicy" (dict "imageRoot" .Values.image "global" .Values.global) }}
{{- end -}}
{{/*
Returns the cloud provider name from global if exists or from the chart's values, defaults to minikube
Expand All @@ -101,16 +96,10 @@ Returns the cloud provider name from global if exists or from the chart's values
{{- end -}}
{{- end -}}

{{/*
Return the proper fully qualified app name
*/}}
{{- define "overseer.fullname" -}}
{{ include "common.names.fullname" . }}
{{- end -}}

{{/*
Return the proper chart name
Create chart name and version as used by the chart label.
*/}}
{{- define "overseer.chart" -}}
{{ include "common.names.chart" . }}
{{- end -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

0 comments on commit 901b45a

Please sign in to comment.