ai-bot impl

This commit is contained in:
2026-10-12 14:36:17 +02:00
parent 34444fdcd2
commit 2d6d2c0c36
13 changed files with 750 additions and 0 deletions
@@ -0,0 +1,33 @@
{{- 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 -}}