initial commit
This commit is contained in:
commit
1253955070
75 changed files with 13972 additions and 0 deletions
41
charts/api/templates/_helpers.tpl
Normal file
41
charts/api/templates/_helpers.tpl
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{{/*
|
||||
Full name.
|
||||
Used for naming resources like Deployments and Services.
|
||||
*/}}
|
||||
{{- define "go-places.fullname" -}}
|
||||
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Labels.
|
||||
Used to mark resources for selection.
|
||||
*/}}
|
||||
{{- define "go-places.labels" -}}
|
||||
helm.sh/chart: {{ include "go-places.chart" . }}
|
||||
{{ include "go-places.selectorLabels" . }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Selector labels.
|
||||
Used by a Service to find the pods it should route traffic to.
|
||||
*/}}
|
||||
{{- define "go-places.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "go-places.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Name template helper.
|
||||
*/}}
|
||||
{{- define "go-places.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Chart name helper.
|
||||
*/}}
|
||||
{{- define "go-places.chart" -}}
|
||||
{{- printf "%s-%s-%s" .Chart.Name .Chart.Version .Chart.AppVersion | replace "+" "_" -}}
|
||||
{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue