{{- define "corehub.fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} {{- define "corehub.labels" -}} app.kubernetes.io/name: core-hub app.kubernetes.io/component: api app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/part-of: railiance-apps helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" }} {{- with .Values.runtime.coreHubEnv }} environment: {{ . }} {{- end }} {{- end -}} {{- define "corehub.selectorLabels" -}} app.kubernetes.io/name: core-hub app.kubernetes.io/component: api {{- end -}} {{- define "corehub.image" -}} {{- if not .Values.image.tag -}} {{- fail "image.tag is required - pin it in helm/core-hub-values.yaml or pass --set image.tag=" -}} {{- end -}} {{- printf "%s:%s" .Values.image.repository .Values.image.tag -}} {{- end -}} {{- define "corehub.runtimeConfigMapName" -}} {{- printf "%s-runtime" .Release.Name -}} {{- end -}}