Deliver the inbox-suggestion implementation from WP-0012: Core Hub Helm chart and Makefile targets, CNPG backup status tooling, and updated backup handoff docs. Archive the finished WP-0012 workplan and register ready follow-ups WP-0013 (CNPG backup wiring + restore drill) and WP-0014 (Core Hub Helm cutover and vergabe-teilnahme image refresh).
33 lines
No EOL
1.1 KiB
Smarty
33 lines
No EOL
1.1 KiB
Smarty
{{- 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=<sha>" -}}
|
|
{{- end -}}
|
|
{{- printf "%s:%s" .Values.image.repository .Values.image.tag -}}
|
|
{{- end -}}
|
|
|
|
{{- define "corehub.runtimeConfigMapName" -}}
|
|
{{- printf "%s-runtime" .Release.Name -}}
|
|
{{- end -}} |