|
1 | 1 | apiVersion: apps/v1
|
2 | 2 | kind: Deployment
|
3 | 3 | metadata:
|
| 4 | + {{- with .Values.deploymentAnnotations }} |
| 5 | + annotations: |
| 6 | + {{- toYaml . | nindent 4 }} |
| 7 | + {{- end }} |
4 | 8 | name: {{ include "kubernetes-event-exporter.fullname" . }}
|
5 | 9 | namespace: {{ include "kubernetes-event-exporter.namespace" . }}
|
| 10 | + labels: |
| 11 | + {{- include "kubernetes-event-exporter.labels" . | nindent 4 }} |
| 12 | + {{- with .Values.deploymentLabels }} |
| 13 | + {{- toYaml . | nindent 4 }} |
| 14 | + {{- end }} |
6 | 15 | spec:
|
7 | 16 | replicas: {{ .Values.replicaCount }}
|
8 | 17 | selector:
|
9 | 18 | matchLabels:
|
10 | 19 | {{- include "kubernetes-event-exporter.selectorLabels" . | nindent 6 }}
|
11 | 20 | template:
|
12 | 21 | metadata:
|
13 |
| - {{- with .Values.podAnnotations }} |
14 | 22 | annotations:
|
| 23 | + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} |
| 24 | + {{- with .Values.podAnnotations }} |
15 | 25 | {{- toYaml . | nindent 8 }}
|
16 | 26 | {{- end }}
|
17 | 27 | labels:
|
18 | 28 | {{- include "kubernetes-event-exporter.selectorLabels" . | nindent 8 }}
|
19 | 29 | spec:
|
20 |
| - {{- with .Values.imagePullSecrets }} |
| 30 | + {{- with .Values.global.imagePullSecrets }} |
21 | 31 | imagePullSecrets:
|
22 | 32 | {{- toYaml . | nindent 8 }}
|
23 | 33 | {{- end }}
|
|
28 | 38 | - name: {{ .Chart.Name }}
|
29 | 39 | securityContext:
|
30 | 40 | {{- toYaml .Values.securityContext | nindent 12 }}
|
31 |
| - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
| 41 | + image: "{{ .Values.global.imageRegistry | default .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
32 | 42 | imagePullPolicy: {{ .Values.image.pullPolicy }}
|
33 | 43 | ports:
|
34 | 44 | - name: metrics
|
|
47 | 57 | volumeMounts:
|
48 | 58 | - mountPath: /data
|
49 | 59 | name: cfg
|
| 60 | + {{- with .Values.extraVolumeMounts }} |
| 61 | + {{- toYaml . | nindent 12 }} |
| 62 | + {{- end }} |
50 | 63 | resources:
|
51 | 64 | {{- toYaml .Values.resources | nindent 12 }}
|
52 | 65 | {{- with .Values.nodeSelector }}
|
|
61 | 74 | tolerations:
|
62 | 75 | {{- toYaml . | nindent 8 }}
|
63 | 76 | {{- end }}
|
| 77 | + {{- with .Values.topologySpreadConstraints }} |
| 78 | + topologySpreadConstraints: |
| 79 | + {{- toYaml . | nindent 8 }} |
| 80 | + {{- end }} |
64 | 81 | volumes:
|
65 | 82 | - name: cfg
|
66 | 83 | configMap:
|
67 | 84 | name: {{ include "kubernetes-event-exporter.fullname" . }}-cfg
|
| 85 | + {{- with .Values.extraVolumes }} |
| 86 | + {{- toYaml . | nindent 8 }} |
| 87 | + {{- end }} |
0 commit comments