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