"templates" にファイルをアップロード
This commit is contained in:
21
templates/_helpers.tpl
Normal file
21
templates/_helpers.tpl
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- define "phpfpm.name" -}}
|
||||
{{- .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end }}
|
||||
|
||||
{{- define "phpfpm.fullname" -}}
|
||||
{{- if .Release.Name -}}
|
||||
{{- printf "%s-%s" .Release.Name (include "phpfpm.name" .) | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
{{- include "phpfpm.name" . -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "phpfpm.labels" -}}
|
||||
app.kubernetes.io/name: {{ include "phpfpm.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{- define "phpfpm.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "phpfpm.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user