- Rename Go module switchboard-core → armature (155+ files) - Rename Docker image → gobha/armature - Rename K8s resources, secrets, deployments - Rename Prometheus metrics switchboard_* → armature_* - Rename env vars SWITCHBOARD_ADMIN_* → ARMATURE_ADMIN_* - Rename DB names switchboard_core* → armature* - Update all frontend branding, notification templates, docs - Update CI scripts, e2e tests, Keycloak realm, nginx conf - Rename scripts/switchboard-ca.sh → scripts/armature-ca.sh - Rename k8s/switchboard.yaml → k8s/armature.yaml - Rename chart alerting/dashboard files - Fix: DockerHub push uses env: binding for secret injection - Helm chart updated (name, labels, template functions, dashboard, alerting) - Replace favicon/icon assets with Armature brand No functional changes. Pure mechanical rename + CI fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
1.7 KiB
Smarty
65 lines
1.7 KiB
Smarty
{{/*
|
|
Common labels
|
|
*/}}
|
|
{{- define "armature.labels" -}}
|
|
app.kubernetes.io/name: {{ .Chart.Name }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Backend selector labels
|
|
*/}}
|
|
{{- define "armature.backend.labels" -}}
|
|
app.kubernetes.io/component: backend
|
|
{{ include "armature.labels" . }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Frontend selector labels
|
|
*/}}
|
|
{{- define "armature.frontend.labels" -}}
|
|
app.kubernetes.io/component: frontend
|
|
{{ include "armature.labels" . }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Secret name
|
|
*/}}
|
|
{{- define "armature.secretName" -}}
|
|
{{- if .Values.existingSecret -}}
|
|
{{ .Values.existingSecret }}
|
|
{{- else -}}
|
|
{{ .Release.Name }}-secrets
|
|
{{- end -}}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Backend image
|
|
*/}}
|
|
{{- define "armature.backend.image" -}}
|
|
{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag | default .Chart.AppVersion }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Frontend image
|
|
*/}}
|
|
{{- define "armature.frontend.image" -}}
|
|
{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag | default .Chart.AppVersion }}
|
|
{{- end }}
|
|
|
|
{{/*
|
|
Database URL — assembled from postgres.* if url is empty
|
|
*/}}
|
|
{{- define "armature.databaseURL" -}}
|
|
{{- if .Values.database.url -}}
|
|
{{ .Values.database.url }}
|
|
{{- else if eq .Values.database.driver "sqlite" -}}
|
|
{{ .Values.database.sqlitePath }}
|
|
{{- else -}}
|
|
postgres://{{ .Values.database.postgres.user }}:$(POSTGRES_PASSWORD)@{{ .Values.database.postgres.host }}:{{ .Values.database.postgres.port }}/{{ .Values.database.postgres.database }}?sslmode={{ .Values.database.postgres.sslmode }}
|
|
{{- end -}}
|
|
{{- end }}
|