blob: 3010d6e735246b975cda9de2fc9635a4d4fd9298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "cdi-operator.fullname" . }}
labels:
{{- include "cdi-operator.labels" . | nindent 4 }}
operator.cdi.kubevirt.io: ""
spec:
replicas: 1
selector:
matchLabels:
{{- include "cdi-operator.selectorLabels" . | nindent 6 }}
operator.cdi.kubevirt.io: ""
strategy: {}
template:
metadata:
labels:
{{- include "cdi-operator.selectorLabels" . | nindent 8 }}
operator.cdi.kubevirt.io: ""
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "cdi-operator.serviceAccountName" . }}
containers:
- name: cdi-operator
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: DEPLOY_CLUSTER_RESOURCES
value: "true"
- name: OPERATOR_VERSION
value: {{ .Values.image.tag | default .Chart.AppVersion }}
- name: CONTROLLER_IMAGE
value: {{ .Values.controllerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: IMPORTER_IMAGE
value: {{ .Values.importerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: CLONER_IMAGE
value: {{ .Values.clonerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: APISERVER_IMAGE
value: {{ .Values.apiserverImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: UPLOAD_SERVER_IMAGE
value: {{ .Values.uploadServerImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: UPLOAD_PROXY_IMAGE
value: {{ .Values.uploadProxyImage.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
- name: VERBOSITY
value: "1"
- name: PULL_POLICY
value: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 60000
name: metrics
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 10 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
|