railiance-apps/charts/core-hub/templates/_helpers.tpl
tegwick e9ee577d03
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 20s
WP-0014: Helm adopt and deploy Core Hub on CoulombCore; backup auth tooling
Adopt live Core Hub resources, align prod ConfigMap naming, default production
image registry to gitea, and install Helm release core-hub rev 1 (smoke passed).
Add apps-pg-backup and check-backup-lane-auth targets; document OIDC login
requirement now that OpenBao is unsealed.
2026-07-10 21:47:14 +02:00

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" -}}
{{- default (printf "%s-runtime" .Release.Name) .Values.runtime.configMapName -}}
{{- end -}}