jenkins: update to 2.568.1 LTS and chart
Change-Id: Ib6b48599a09dee669d77441c12b354240ef257b8
diff --git a/charts/jenkins/templates/jenkins-controller-httproute.yaml b/charts/jenkins/templates/jenkins-controller-httproute.yaml
new file mode 100644
index 0000000..f2dcfc1
--- /dev/null
+++ b/charts/jenkins/templates/jenkins-controller-httproute.yaml
@@ -0,0 +1,40 @@
+{{- if .Values.controller.httpRoute.enabled }}
+{{- $root := . }}
+{{- $hostnames := (list) }}
+{{- if .Values.controller.httpRoute.reuseIngressConfiguration }}
+ {{- if .Values.controller.ingress.hostName }}
+ {{- $hostnames = append $hostnames .Values.controller.ingress.hostName }}
+ {{- end }}
+ {{- if .Values.controller.ingress.resourceRootUrl }}
+ {{- $hostnames = append $hostnames .Values.controller.ingress.resourceRootUrl }}
+ {{- end }}
+{{- else }}
+ {{- $hostnames = default (list) .Values.controller.httpRoute.hostnames }}
+{{- end }}
+apiVersion: {{ .Values.controller.httpRoute.apiVersion }}
+kind: {{ .Values.controller.httpRoute.kind }}
+metadata:
+ name: {{ include "jenkins.fullname" . }}
+ labels:
+ {{- include "jenkins.labels" . | nindent 4 }}
+ {{- if .Values.controller.httpRoute.annotations }}
+ annotations:
+ {{- tpl (toYaml .Values.controller.httpRoute.annotations) . | nindent 4 }}
+ {{- end }}
+spec:
+ {{- with .Values.controller.httpRoute.parentRefs }}
+ parentRefs:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+ hostnames:
+ {{- range $hostnames }}
+ - {{ . | quote }}
+ {{- end }}
+ rules:
+{{- if .Values.controller.httpRoute.extraRules }}
+{{- toYaml .Values.controller.httpRoute.extraRules | nindent 2 }}
+{{- end }}
+ - backendRefs:
+ - name: {{ include "jenkins.fullname" $root }}
+ port: {{ $root.Values.controller.servicePort }}
+{{- end }}