Skip to content

Commit 61dd959

Browse files
committed
add priorityClassName attribute
1 parent c718ec8 commit 61dd959

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
app: olm-operator
1919
spec:
2020
serviceAccountName: olm-operator-serviceaccount
21+
{{- if and .Values.installType (eq .Values.installType "ocp") }}
22+
priorityClassName: "system-cluster-critical"
23+
{{- end }}
2124
containers:
2225
- name: olm-operator
2326
command:
@@ -47,9 +50,6 @@ spec:
4750
{{- end }}
4851
image: {{ .Values.olm.image.ref }}
4952
imagePullPolicy: {{ .Values.olm.image.pullPolicy }}
50-
{{- if and .Values.installType (eq .Values.installType "ocp") }}
51-
priorityClassName: "system-cluster-critical"
52-
{{- end }}
5353
ports:
5454
- containerPort: {{ .Values.olm.service.internalPort }}
5555
- containerPort: 8081

deploy/chart/templates/0000_50_olm_08-catalog-operator.deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
app: catalog-operator
1919
spec:
2020
serviceAccountName: olm-operator-serviceaccount
21+
{{- if and .Values.installType (eq .Values.installType "ocp") }}
22+
priorityClassName: "system-cluster-critical"
23+
{{- end }}
2124
containers:
2225
- name: catalog-operator
2326
command:
@@ -49,9 +52,6 @@ spec:
4952
{{- end }}
5053
image: {{ .Values.catalog.image.ref }}
5154
imagePullPolicy: {{ .Values.catalog.image.pullPolicy }}
52-
{{- if and .Values.installType (eq .Values.installType "ocp") }}
53-
priorityClassName: "system-cluster-critical"
54-
{{- end }}
5555
ports:
5656
- containerPort: {{ .Values.catalog.service.internalPort }}
5757
- containerPort: 8081

deploy/chart/templates/_packageserver.deployment-spec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ spec:
1212
app: packageserver
1313
spec:
1414
serviceAccountName: packageserver
15+
{{- if and .Values.installType (eq .Values.installType "ocp") }}
16+
priorityClassName: "system-cluster-critical"
17+
{{- end }}
1518
{{- if .Values.package.nodeSelector }}
1619
nodeSelector:
1720
{{- toYaml .Values.package.nodeSelector | nindent 8 }}
@@ -41,9 +44,6 @@ spec:
4144
{{- end }}
4245
image: {{ .Values.package.image.ref }}
4346
imagePullPolicy: {{ .Values.package.image.pullPolicy }}
44-
{{- if and .Values.installType (eq .Values.installType "ocp") }}
45-
priorityClassName: "system-cluster-critical"
46-
{{- end }}
4747
ports:
4848
- containerPort: {{ .Values.package.service.internalPort }}
4949
livenessProbe:

0 commit comments

Comments
 (0)