|
| 1 | +{{/* |
| 2 | +Copyright 2023 HAProxy Technologies LLC |
| 3 | + |
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | + |
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + |
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/}} |
| 16 | + |
| 17 | +apiVersion: batch/v1 |
| 18 | +kind: Job |
| 19 | +metadata: |
| 20 | + name: {{ include "kubernetes-ingress.crdjob.fullname" . }} |
| 21 | + namespace: {{ include "kubernetes-ingress.namespace" . }} |
| 22 | + labels: |
| 23 | + app.kubernetes.io/name: {{ include "kubernetes-ingress.name" . }} |
| 24 | + helm.sh/chart: {{ include "kubernetes-ingress.chart" . }} |
| 25 | + app.kubernetes.io/managed-by: {{ .Release.Service }} |
| 26 | + app.kubernetes.io/instance: {{ .Release.Name }} |
| 27 | + app.kubernetes.io/version: {{ .Chart.AppVersion }} |
| 28 | +spec: |
| 29 | + template: |
| 30 | + metadata: |
| 31 | + labels: |
| 32 | + app.kubernetes.io/name: {{ include "kubernetes-ingress.name" . }} |
| 33 | + app.kubernetes.io/instance: {{ .Release.Name }} |
| 34 | + {{- if .Values.controller.podLabels }} |
| 35 | +{{ toYaml .Values.controller.podLabels | indent 8 }} |
| 36 | + {{- end }} |
| 37 | + {{- if .Values.controller.podAnnotations }} |
| 38 | + annotations: |
| 39 | +{{ toYaml .Values.controller.podAnnotations | indent 8 }} |
| 40 | + {{- end }} |
| 41 | + spec: |
| 42 | + serviceAccountName: {{ include "kubernetes-ingress.serviceAccountName" . }} |
| 43 | + containers: |
| 44 | + - name: {{ include "kubernetes-ingress.name" . }}-{{ .Values.controller.name }} |
| 45 | + image: "{{ .Values.controller.image.repository }}:{{ tpl .Values.controller.image.tag . }}" |
| 46 | + imagePullPolicy: {{ .Values.controller.image.pullPolicy }} |
| 47 | + command: |
| 48 | + - /haproxy-ingress-controller |
| 49 | + - --job-check-crd |
| 50 | + restartPolicy: Never |
| 51 | + backoffLimit: 0 |
0 commit comments