Skip to content

Commit cc47b63

Browse files
Merge pull request #2157 from timflannagan/remove-ocp-manifests
Remove any references to OCP in the helm charts and upstream manifests
2 parents 01af7a3 + 4e7a7da commit cc47b63

File tree

331 files changed

+10
-151175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+10
-151175
lines changed

Makefile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ export KUBEBUILDER_ASSETS
2828
GO := GO111MODULE=on GOFLAGS="$(MOD_FLAGS)" go
2929
GINKGO := $(GO) run github.com/onsi/ginkgo/ginkgo
3030
BINDATA := $(GO) run github.com/go-bindata/go-bindata/v3/go-bindata
31-
32-
# ART builds are performed in dist-git, with content (but not commits) copied
33-
# from the source repo. Thus at build time if your code is inspecting the local
34-
# git repo it is getting unrelated commits and tags from the dist-git repo,
35-
# not the source repo.
36-
# For ART image builds, SOURCE_GIT_COMMIT, SOURCE_GIT_TAG, SOURCE_DATE_EPOCH
37-
# variables are inserted in Dockerfile to enable recovering the original git
38-
# metadata at build time.
39-
GIT_COMMIT := $(if $(SOURCE_GIT_COMMIT),$(SOURCE_GIT_COMMIT),$(shell git rev-parse HEAD))
31+
GIT_COMMIT := $(shell git rev-parse HEAD)
4032

4133
.PHONY: build test run clean vendor schema-check \
4234
vendor-update coverage coverage-html e2e \
@@ -223,7 +215,6 @@ release: ver=$(shell cat OLM_VERSION)
223215
release: manifests
224216
docker pull quay.io/operator-framework/olm:v$(ver)
225217
$(MAKE) target=upstream ver=$(ver) quickstart=true package
226-
$(MAKE) target=ocp ver=$(ver) package
227218

228219
verify-release: release diff
229220

@@ -240,9 +231,6 @@ endif
240231
$(YQ_INTERNAL) w -i deploy/$(target)/values.yaml package.image.ref $(olmref)
241232
./scripts/package_release.sh $(ver) deploy/$(target)/manifests/$(ver) deploy/$(target)/values.yaml
242233
ln -sfFn ./$(ver) deploy/$(target)/manifests/latest
243-
ifeq ($(target), ocp)
244-
./scripts/add_release_annotation.sh deploy/$(target)/manifests/$(ver) "$(YQ_INTERNAL)"
245-
endif
246234
ifeq ($(quickstart), true)
247235
./scripts/package_quickstart.sh deploy/$(target)/manifests/$(ver) deploy/$(target)/quickstart/olm.yaml deploy/$(target)/quickstart/crds.yaml deploy/$(target)/quickstart/install.sh
248236
endif

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/0000_90_olm_00-service-monitor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
1+
{{ if .Values.monitoring.enabled }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
@@ -70,7 +70,7 @@ roleRef:
7070
subjects:
7171
- kind: ServiceAccount
7272
name: prometheus-k8s
73-
namespace: openshift-monitoring
73+
namespace: {{ .Values.monitoring.namespace }}
7474
---
7575
apiVersion: rbac.authorization.k8s.io/v1
7676
kind: Role

deploy/chart/templates/0000_90_olm_01-prometheus-rule.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if and .Values.installType (eq .Values.installType "ocp") }}
1+
{{ if .Values.monitoring.enabled }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: PrometheusRule
44
metadata:

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.

deploy/chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ package:
5151
requests:
5252
cpu: 10m
5353
memory: 50Mi
54+
55+
monitoring:
56+
enabled: false
57+
namespace: monitoring

deploy/ocp/manifests/0.10.0/0000_50_olm_00-namespace.yaml

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

deploy/ocp/manifests/0.10.0/0000_50_olm_01-olm-operator.serviceaccount.yaml

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

deploy/ocp/manifests/0.10.0/0000_50_olm_02-services.yaml

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

0 commit comments

Comments
 (0)