Skip to content

Commit e7b6616

Browse files
Merge pull request #1308 from dinhxuanvu/remove-run-level
Bug 1805570: Remove run-level 1 from olm and openshift-operators namespaces
2 parents 20fac5f + acaae85 commit e7b6616

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
annotations:
77
openshift.io/node-selector: ""
88
labels:
9-
openshift.io/run-level: "1"
9+
openshift.io/scc: "anyuid"
1010
openshift.io/cluster-monitoring: "true"
1111
{{ end }}
1212
---
@@ -18,5 +18,5 @@ metadata:
1818
annotations:
1919
openshift.io/node-selector: ""
2020
labels:
21-
openshift.io/run-level: "1"
21+
openshift.io/scc: "anyuid"
2222
{{ end }}

manifests/0000_50_olm_00-namespace.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ apiVersion: v1
22
kind: Namespace
33
metadata:
44
name: openshift-operator-lifecycle-manager
5-
65
annotations:
76
openshift.io/node-selector: ""
87
labels:
9-
openshift.io/run-level: "1"
8+
openshift.io/scc: "anyuid"
109
openshift.io/cluster-monitoring: "true"
1110
---
1211
apiVersion: v1
1312
kind: Namespace
1413
metadata:
1514
name: openshift-operators
16-
1715
annotations:
1816
openshift.io/node-selector: ""
1917
labels:
20-
openshift.io/run-level: "1"
18+
openshift.io/scc: "anyuid"

test/e2e/csv_e2e_test.go

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,26 +2489,15 @@ func TestUpdateCSVInPlace(t *testing.T) {
24892489
require.NoError(t, err)
24902490
require.NotNil(t, dep)
24912491

2492-
// Create "updated" CSV with a different image
2492+
// Create "updated" CSV
24932493
strategyNew := strategy
24942494
strategyNew.DeploymentSpecs[0].Spec.Template.Spec.Containers = []corev1.Container{
24952495
{
2496-
Name: genName("hat"),
2497-
Image: "quay.io/coreos/mock-extension-apiserver:master",
2498-
Command: []string{"/bin/mock-extension-apiserver"},
2499-
Args: []string{
2500-
"-v=4",
2501-
"--mock-kinds",
2502-
"fedora",
2503-
"--mock-group-version",
2504-
"group.version",
2505-
"--secure-port",
2506-
"5443",
2507-
"--debug",
2508-
},
2496+
Name: genName("nginx-"),
2497+
Image: *dummyImage,
25092498
Ports: []corev1.ContainerPort{
25102499
{
2511-
ContainerPort: 5443,
2500+
ContainerPort: 80,
25122501
},
25132502
},
25142503
ImagePullPolicy: corev1.PullIfNotPresent,

0 commit comments

Comments
 (0)