Files
launchpad/apps/charts/ai-git-bot/templates/_helpers.tpl
T
2026-10-12 14:36:17 +02:00

34 lines
976 B
Smarty

{{- define "ai-git-bot.fullname" -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "ai-git-bot.labels" -}}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
app.kubernetes.io/version: {{ .Values.image.tag | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "ai-git-bot.selectorLabels" -}}
app.kubernetes.io/name: ai-git-bot
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{- define "ai-git-bot.postgresql.fullname" -}}
{{- printf "%s-postgresql" (include "ai-git-bot.fullname" .) -}}
{{- end -}}
{{- define "ai-git-bot.postgresql.selectorLabels" -}}
app.kubernetes.io/name: postgresql
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
{{- define "ai-git-bot.publicUrl" -}}
{{- if .Values.publicUrl -}}
{{- .Values.publicUrl -}}
{{- else if .Values.ingress.host -}}
{{- printf "https://%s" .Values.ingress.host -}}
{{- else -}}
http://localhost:8080
{{- end -}}
{{- end -}}