Skip to content

Commit 6113832

Browse files
committed
WIP: add deployment layer
Signed-off-by: Todd Short <[email protected]>
1 parent 3ab5541 commit 6113832

File tree

3 files changed

+37
-35
lines changed

3 files changed

+37
-35
lines changed

helm/olmv1/templates/29-deployment-olmv1-system-catalogd-controller-manager.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
- --tls-cert=/var/certs/tls.crt
5353
- --tls-key=/var/certs/tls.key
5454
- --pull-cas-dir=/var/ca-certs
55-
{{- with .Values.components.operatorController.podArguments }}
55+
{{- with .Values.components.catalogd.deployment.podArguments }}
5656
{{- toYaml . | nindent 12 }}
5757
{{- end }}
5858
command:
@@ -62,8 +62,8 @@ spec:
6262
- name: GOCOVERDIR
6363
value: /e2e-coverage
6464
{{- end }}
65-
image: "{{ .Values.components.catalogd.image.repository }}:{{ .Values.components.catalogd.image.tag | default .Chart.AppVersion }}"
66-
imagePullPolicy: {{ .Values.components.catalogd.image.pullPolicy }}
65+
image: "{{ .Values.components.catalogd.deployment.image.repository }}:{{ .Values.components.catalogd.deployment.image.tag | default .Chart.AppVersion }}"
66+
imagePullPolicy: {{ .Values.components.catalogd.deployment.image.pullPolicy }}
6767
livenessProbe:
6868
httpGet:
6969
path: /healthz
@@ -102,7 +102,7 @@ spec:
102102
name: olmv1-certificate
103103
readOnly: true
104104
{{- end }}
105-
{{- with .Values.components.catalogd.volumeMounts }}
105+
{{- with .Values.components.catalogd.deployment.volumeMounts }}
106106
{{- toYaml . | nindent }}
107107
{{- end }}
108108
{{- with .Values.podSecurityContext }}
@@ -133,18 +133,18 @@ spec:
133133
optional: false
134134
secretName: catalogd-service-cert-git-version
135135
{{- end }}
136-
{{- with .Values.components.catalogd.volumes }}
136+
{{- with .Values.components.catalogd.deployment.volumes }}
137137
{{- toYaml . | indent 8 }}
138138
{{- end }}
139-
{{- with .Values.components.catalogd.nodeSelector }}
139+
{{- with .Values.components.catalogd.deployment.nodeSelector }}
140140
nodeSelector:
141141
{{- toYaml . | nindent 8 }}
142142
{{- end }}
143-
{{- with .Values.components.catalogd.affinity }}
143+
{{- with .Values.components.catalogd.deployment.affinity }}
144144
affinity:
145145
{{- toYaml . | nindent 8 }}
146146
{{- end }}
147-
{{- with .Values.components.catalogd.tolerations }}
147+
{{- with .Values.components.catalogd.deployment.tolerations }}
148148
tolerations:
149149
{{- toYaml . | nindent 8 }}
150150
{{- end }}

helm/olmv1/templates/30-deployment-olmv1-system-operator-controller-controller-manager.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ spec:
7171
- name: GOCOVERDIR
7272
value: /e2e-coverage
7373
{{- end }}
74-
image: "{{ .Values.components.operatorController.image.repository }}:{{ .Values.components.operatorController.image.tag | default .Chart.AppVersion }}"
74+
image: "{{ .Values.components.operatorController.deployment.image.repository }}:{{ .Values.components.operatorController.deployment.image.tag | default .Chart.AppVersion }}"
7575
image: quay.io/operator-framework/operator-controller:devel
76-
imagePullPolicy: {{ .Values.components.operatorController.image.pullPolicy }}
76+
imagePullPolicy: {{ .Values.components.operatorController.deployment.image.pullPolicy }}
7777
livenessProbe:
7878
httpGet:
7979
path: /healthz
@@ -112,7 +112,7 @@ spec:
112112
name: olmv1-certificate
113113
readOnly: true
114114
{{- end }}
115-
{{- with .Values.components.operatorController.volumeMounts }}
115+
{{- with .Values.components.operatorController.deployment.volumeMounts }}
116116
{{- toYaml . | nindent }}
117117
{{- end }}
118118
{{- with .Values.podSecurityContext }}
@@ -147,18 +147,18 @@ spec:
147147
optional: false
148148
secretName: olmv1-cert
149149
{{- end }}
150-
{{- with .Values.components.operatorController.volumes }}
150+
{{- with .Values.components.operatorController.deployment.volumes }}
151151
{{- toYaml . | indent 8 }}
152152
{{- end }}
153-
{{- with .Values.components.operatorController.nodeSelector }}
153+
{{- with .Values.components.operatorController.deployment.nodeSelector }}
154154
nodeSelector:
155155
{{- toYaml . | nindent 8 }}
156156
{{- end }}
157-
{{- with .Values.components.operatorController.affinity }}
157+
{{- with .Values.components.operatorController.deployment.affinity }}
158158
affinity:
159159
{{- toYaml . | nindent 8 }}
160160
{{- end }}
161-
{{- with .Values.components.operatorController.tolerations }}
161+
{{- with .Values.components.operatorController.deployment.tolerations }}
162162
tolerations:
163163
{{- toYaml . | nindent 8 }}
164164
{{- end }}

helm/olmv1/values.yaml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
components:
77
operatorController:
88
enabled: true
9-
image:
10-
repository: quay.io/operator-framework/operator-controller
11-
pullPolicy: IfNotPresent
12-
tag: devel
13-
volumeMounts: {}
14-
volumes: {}
15-
affinity: {}
16-
nodeSelector: {}
17-
tolerations: {}
18-
podArguments: {}
9+
deployment:
10+
image:
11+
repository: quay.io/operator-framework/operator-controller
12+
pullPolicy: IfNotPresent
13+
tag: devel
14+
volumeMounts: {}
15+
volumes: {}
16+
affinity: {}
17+
nodeSelector: {}
18+
tolerations: {}
19+
podArguments: {}
1920
service:
2021
annotations: {}
2122
clusterRole:
@@ -24,16 +25,17 @@ components:
2425
rules: {}
2526
catalogd:
2627
enabled: true
27-
image:
28-
repository: quay.io/operator-framework/catalogd
29-
pullPolicy: IfNotPresent
30-
tag: devel
31-
volumeMounts: {}
32-
volumes: {}
33-
affinity: {}
34-
nodeSelector: {}
35-
tolerations: {}
36-
podArguments: {}
28+
deployment:
29+
image:
30+
repository: quay.io/operator-framework/catalogd
31+
pullPolicy: IfNotPresent
32+
tag: devel
33+
volumeMounts: {}
34+
volumes: {}
35+
affinity: {}
36+
nodeSelector: {}
37+
tolerations: {}
38+
podArguments: {}
3739
service:
3840
annotations: {}
3941
clusterRole:

0 commit comments

Comments
 (0)