Skip to content

Commit 48b8123

Browse files
committed
deploy/chart: Remove any OCP-related helm chart conditionals
Signed-off-by: timflannagan <[email protected]>
1 parent 5c26436 commit 48b8123

6 files changed

+1
-106
lines changed

deploy/chart/templates/0000_50_olm_00-namespace.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,9 @@ apiVersion: v1
22
kind: Namespace
33
metadata:
44
name: {{ .Values.namespace }}
5-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
6-
annotations:
7-
openshift.io/node-selector: ""
8-
labels:
9-
openshift.io/scc: "anyuid"
10-
openshift.io/cluster-monitoring: "true"
11-
{{ end }}
5+
126
---
137
apiVersion: v1
148
kind: Namespace
159
metadata:
1610
name: {{ .Values.operator_namespace }}
17-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
18-
annotations:
19-
openshift.io/node-selector: ""
20-
labels:
21-
openshift.io/scc: "anyuid"
22-
{{ end }}

deploy/chart/templates/0000_50_olm_02-services.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ 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 }}
2421
containers:
2522
- name: olm-operator
2623
command:
@@ -71,10 +68,6 @@ spec:
7168
port: {{ .Values.olm.service.internalPort }}
7269
terminationMessagePolicy: FallbackToLogsOnError
7370
env:
74-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
75-
- name: RELEASE_VERSION
76-
value: "0.0.1-snapshot"
77-
{{ end }}
7871
- name: OPERATOR_NAMESPACE
7972
valueFrom:
8073
fieldRef:
@@ -85,17 +78,6 @@ spec:
8578
resources:
8679
{{ toYaml .Values.olm.resources | indent 12 }}
8780
{{- end}}
88-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
89-
volumeMounts:
90-
- mountPath: /var/run/secrets/serving-cert
91-
name: serving-cert
92-
{{ end }}
93-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
94-
volumes:
95-
- name: serving-cert
96-
secret:
97-
secretName: olm-operator-serving-cert
98-
{{ end }}
9981
{{- if .Values.olm.nodeSelector }}
10082
nodeSelector:
10183
{{ toYaml .Values.olm.nodeSelector | indent 8 }}

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ 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 }}
2421
containers:
2522
- name: catalog-operator
2623
command:
@@ -64,26 +61,10 @@ spec:
6461
path: /healthz
6562
port: {{ .Values.catalog.service.internalPort }}
6663
terminationMessagePolicy: FallbackToLogsOnError
67-
env:
68-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
69-
- name: RELEASE_VERSION
70-
value: "0.0.1-snapshot"
71-
{{ end }}
7264
{{- if .Values.catalog.resources }}
7365
resources:
7466
{{ toYaml .Values.catalog.resources | indent 12 }}
7567
{{- end}}
76-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
77-
volumeMounts:
78-
- mountPath: /var/run/secrets/serving-cert
79-
name: serving-cert
80-
{{ end }}
81-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
82-
volumes:
83-
- name: serving-cert
84-
secret:
85-
secretName: catalog-operator-serving-cert
86-
{{ end }}
8768
{{- if .Values.catalog.nodeSelector }}
8869
nodeSelector:
8970
{{ toYaml .Values.catalog.nodeSelector | indent 8 }}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ spec:
1515
app: packageserver
1616
spec:
1717
serviceAccountName: olm-operator-serviceaccount
18-
{{- if and .Values.installType (eq .Values.installType "ocp") }}
19-
priorityClassName: "system-cluster-critical"
20-
{{- end }}
2118
{{- if .Values.package.nodeSelector }}
2219
nodeSelector:
2320
{{- toYaml .Values.package.nodeSelector | nindent 8 }}

deploy/chart/templates/image-references

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)