feat: convert jenkins to Helm chart (helm/jenkins/) #6

Merged
admin merged 10 commits from feat/helm-jenkins into main 2026-03-08 15:37:58 +00:00
Showing only changes of commit 1c102876ea - Show all commits

View File

@@ -0,0 +1,43 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "jenkins.name" -}}
{{- .Chart.Name }}
{{- end }}
{{/*
Full name: release + chart name (trimmed to 63 chars)
*/}}
{{- define "jenkins.fullname" -}}
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels applied to all resources
*/}}
{{- define "jenkins.labels" -}}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
app.kubernetes.io/name: {{ include "jenkins.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels used in Deployment + Service matchLabels
*/}}
{{- define "jenkins.selectorLabels" -}}
app.kubernetes.io/name: {{ include "jenkins.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
ServiceAccount name
*/}}
{{- define "jenkins.serviceAccountName" -}}
{{- if .Values.rbac.enabled }}
{{- .Values.rbac.serviceAccountName }}
{{- else }}
default
{{- end }}
{{- end }}