11{ {/*
22Name of chart
33*/} }
4- { {- define " chart .name" -} }
4+ { {- define " cartridge .name" -} }
55{ {- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" } }
66{ {- end } }
77
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111If release name contains chart name it will be used as a full name.
1212*/} }
13- { {- define " chart .fullname" -} }
13+ { {- define " cartridge .fullname" -} }
1414{ {- if .Values.fullnameOverride } }
1515{ {- .Values.fullnameOverride | trunc 63 | trimSuffix " -" } }
1616{ {- else } }
@@ -26,35 +26,35 @@ If release name contains chart name it will be used as a full name.
2626{ {/*
2727Subresource name
2828*/} }
29- { {- define " chart .resource.fullname" -} }
30- { {- printf " %s-%s" (include " chart .fullname" .context) .suffix | trunc 63 | trimSuffix " -" } }
29+ { {- define " cartridge .resource.fullname" -} }
30+ { {- printf " %s-%s" (include " cartridge .fullname" .context) .suffix | trunc 63 | trimSuffix " -" } }
3131{ {- end -} }
3232
3333{ {/*
3434Standard label
3535*/} }
36- { {- define " chart .standard-labels" -} }
37- app.kubernetes.io/name: { { include " chart .name" . } }
36+ { {- define " cartridge .standard-labels" -} }
37+ app.kubernetes.io/name: { { include " cartridge .name" . } }
3838app.kubernetes.io/instance: { { .Release.Name } }
3939app.kubernetes.io/managed-by: { { .Release.Service } }
4040app.kubernetes.io/part-of: tarantool
4141app.kubernetes.io/component: tarantool
42- tarantool.io/cluster-name: { { include " chart .fullname" . } }
42+ tarantool.io/cluster-name: { { include " cartridge .fullname" . } }
4343{ {- end -} }
4444
4545{ {/*
4646Standard and user labels
4747*/} }
48- { {- define " chart .labels" -} }
49- { {- include " chart .standard-labels" . | indent 0 } }
48+ { {- define " cartridge .labels" -} }
49+ { {- include " cartridge .standard-labels" . | indent 0 } }
5050{ {- if .Values.labels } }
5151{ {- tpl (.Values.labels | toYaml) $ | nindent 0 } }
5252{ {- end } }
5353{ {- end -} }
5454
55- { {- define " chart .matchLabels" -} }
56- app.kubernetes.io/name: { { include " chart .name" . } }
55+ { {- define " cartridge .matchLabels" -} }
56+ app.kubernetes.io/name: { { include " cartridge .name" . } }
5757app.kubernetes.io/instance: { { .Release.Name } }
5858app.kubernetes.io/component: tarantool
59- tarantool.io/cluster-name: { { include " chart .fullname" . } }
59+ tarantool.io/cluster-name: { { include " cartridge .fullname" . } }
6060{ {- end -} }
0 commit comments