File tree Expand file tree Collapse file tree 5 files changed +22
-18
lines changed Expand file tree Collapse file tree 5 files changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,15 @@ Here's an example `values.yaml`
36
36
# sets the apiversion to use for rbac-resources. Change to `authorization.openshift.io` for openshift
37
37
rbacApiVersion : rbac.authorization.k8s.io
38
38
# namespace is the namespace the operators will _run_
39
- namespace : local
39
+ namespace : olm
40
40
# watchedNamespaces is a comma-separated list of namespaces the operators will _watch_ for OLM resources.
41
41
# Omit to enable OLM in all namespaces
42
- watchedNamespaces : local
42
+ watchedNamespaces : olm
43
43
# catalog_namespace is the namespace where the catalog operator will look for global catalogs.
44
44
# entries in global catalogs can be resolved in any watched namespace
45
- catalog_namespace : local
45
+ catalog_namespace : olm
46
46
# operator_namespace is the namespace where the operator runs
47
- operator_namespace : local
47
+ operator_namespace : operators
48
48
49
49
# OLM operator run configuration
50
50
olm :
@@ -98,19 +98,21 @@ apiVersion: operators.coreos.com/v1alpha1
98
98
kind: Subscription
99
99
metadata:
100
100
name: etcd
101
- namespace: local
101
+ namespace: olm
102
102
spec:
103
- channel: alpha
103
+ channel: singlenamespace- alpha
104
104
name: etcd
105
- source: rh-operators
105
+ source: operatorhubio-catalog
106
+ sourceNamespace: olm
106
107
---
107
108
apiVersion: operators.coreos.com/v1alpha1
108
109
kind: Subscription
109
110
metadata:
110
111
name: prometheus
111
- namespace: local
112
+ namespace: olm
112
113
spec:
113
114
channel: alpha
114
115
name: prometheus
115
- source: rh-operators
116
+ source: operatorhubio-catalog
117
+ sourceNamespace: olm
116
118
` ` `
Original file line number Diff line number Diff line change 1
1
installType : upstream
2
2
rbacApiVersion : rbac.authorization.k8s.io
3
- namespace : local
3
+ namespace : olm
4
4
writeStatusName : ' ""'
5
- catalog_namespace : local
6
- operator_namespace : local- operators
5
+ catalog_namespace : olm
6
+ operator_namespace : operators
7
7
debug : true
8
8
9
9
olm :
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ MOCKGEN := ./scripts/generate_mocks.sh
14
14
IMAGE_REPO := quay.io/operator-framework/olm
15
15
IMAGE_TAG ?= "dev"
16
16
SPECIFIC_UNIT_TEST := $(if $(TEST ) ,-run $(TEST ) ,)
17
+ LOCAL_NAMESPACE := "olm"
17
18
export GO111MODULE =on
18
19
19
20
# ART builds are performed in dist-git, with content (but not commits) copied
@@ -75,13 +76,13 @@ run-local: build-linux
75
76
. ./scripts/build_local.sh
76
77
mkdir -p build/resources
77
78
. ./scripts/package_release.sh 1.0.0 build/resources Documentation/install/local-values.yaml
78
- . ./scripts/install_local.sh local build/resources
79
+ . ./scripts/install_local.sh $( LOCAL_NAMESPACE ) build/resources
79
80
rm -rf build
80
81
81
82
deploy-local :
82
83
mkdir -p build/resources
83
84
. ./scripts/package_release.sh 1.0.0 build/resources Documentation/install/local-values.yaml
84
- . ./scripts/install_local.sh local build/resources
85
+ . ./scripts/install_local.sh $( LOCAL_NAMESPACE ) build/resources
85
86
rm -rf build
86
87
87
88
e2e.namespace :
Original file line number Diff line number Diff line change @@ -96,11 +96,12 @@ apiVersion: operators.coreos.com/v1alpha1
96
96
kind : Subscription
97
97
metadata :
98
98
name : etcd
99
- namespace : local
99
+ namespace : olm
100
100
spec :
101
- channel : alpha
101
+ channel : singlenamespace- alpha
102
102
name : etcd
103
- source : rh-operators
103
+ source : operatorhubio-catalog
104
+ sourceNamespace : olm
104
105
` ` `
105
106
106
107
This will keep the etcd ` ClusterServiceVersion` up to date as new versions become available in the catalog.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func TestToAttributeSet(t *testing.T) {
14
14
user := & user.DefaultInfo {
15
15
Name : "Jim" ,
16
16
}
17
- namespace := "local "
17
+ namespace := "olm "
18
18
19
19
tests := []struct {
20
20
description string
You can’t perform that action at this time.
0 commit comments