This repository was archived by the owner on Aug 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +86
-42
lines changed Expand file tree Collapse file tree 8 files changed +86
-42
lines changed Original file line number Diff line number Diff line change 3
3
To install the operators in your cluster running the
4
4
[ OLM] ( https://github.com/operator-framework/operator-lifecycle-manager ) :
5
5
6
- $ kubectl apply -f https://raw.githubusercontent.com/openshift-cloud-functions/knative-operators/master/knative-operators.catalogsource.yaml
6
+ # Namespace should be what the OLM catalog operator is watching
7
+ $ kubectl apply -n operator-lifecycle-manager -f https://raw.githubusercontent.com/openshift-cloud-functions/knative-operators/master/knative-operators.catalogsource.yaml
7
8
8
9
To regenerate the ` CatalogSource ` and its associated ` ConfigMap ` from
9
10
the source files beneath [ olm-catalog/] ( olm-catalog/ ) :
10
11
11
12
$ ./etc/scripts/catalog.sh >knative-operators.catalogsource.yaml
13
+
14
+ To install everything on a fresh minishift:
15
+
16
+ $ ./etc/scripts/install-on-minishift.sh
17
+
18
+ To install everything on any OpenShift cluster:
19
+
20
+ $ oc login <<< with plenty of admin creds >>>
21
+ $ export KUBE_SSH_USER=ec2-user
22
+ $ export KUBE_SSH_KEY=~/.ssh/ocp-workshop.pem
23
+ $ ./etc/scripts/install.sh
Original file line number Diff line number Diff line change @@ -119,8 +119,9 @@ function install_olm {
119
119
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:kube-system:default
120
120
121
121
# knative catalog source
122
- oc apply -f " $ROOT_DIR /knative-operators.catalogsource.yaml"
123
- oc apply -f " $ROOT_DIR /maistra-operators.catalogsource.yaml"
122
+ local OLM_NS=$( grep " catalog_namespace:" " $OLM_DIR /deploy/okd/values.yaml" | awk ' {print $2}' )
123
+ oc apply -f " $ROOT_DIR /knative-operators.catalogsource.yaml" -n " $OLM_NS "
124
+ oc apply -f " $ROOT_DIR /maistra-operators.catalogsource.yaml" -n " $OLM_NS "
124
125
}
125
126
126
127
function install_istio {
Original file line number Diff line number Diff line change 69
69
plural: clusterbuildtemplates
70
70
scope: Cluster
71
71
version: v1alpha1
72
- - apiVersion: apiextensions.k8s.io/v1beta1
73
- kind: CustomResourceDefinition
74
- metadata:
75
- name: images.caching.internal.knative.dev
76
- spec:
77
- group: caching.internal.knative.dev
78
- names:
79
- categories:
80
- - all
81
- - knative-internal
82
- - caching
83
- kind: Image
84
- plural: images
85
- shortNames:
86
- - img
87
- singular: image
88
- scope: Namespaced
89
- version: v1alpha1
90
72
- apiVersion: apiextensions.k8s.io/v1beta1
91
73
kind: CustomResourceDefinition
92
74
metadata:
@@ -783,6 +765,16 @@ data:
783
765
maturity: alpha
784
766
replaces: knative-build.v0.1.2
785
767
768
+ installModes:
769
+ - supported: true
770
+ type: OwnNamespace
771
+ - supported: true
772
+ type: SingleNamespace
773
+ - supported: true
774
+ type: MultiNamespace
775
+ - supported: true
776
+ type: AllNamespaces
777
+
786
778
install:
787
779
strategy: deployment
788
780
spec:
@@ -1157,6 +1149,16 @@ data:
1157
1149
maturity: alpha
1158
1150
replaces: knative-eventing.v0.2.0
1159
1151
1152
+ installModes:
1153
+ - supported: true
1154
+ type: OwnNamespace
1155
+ - supported: true
1156
+ type: SingleNamespace
1157
+ - supported: true
1158
+ type: MultiNamespace
1159
+ - supported: true
1160
+ type: AllNamespaces
1161
+
1160
1162
install:
1161
1163
strategy: deployment
1162
1164
spec:
@@ -2282,6 +2284,16 @@ data:
2282
2284
maturity: alpha
2283
2285
replaces: knative-serving.v0.2.1
2284
2286
2287
+ installModes:
2288
+ - supported: true
2289
+ type: OwnNamespace
2290
+ - supported: true
2291
+ type: SingleNamespace
2292
+ - supported: true
2293
+ type: MultiNamespace
2294
+ - supported: true
2295
+ type: AllNamespaces
2296
+
2285
2297
install:
2286
2298
strategy: deployment
2287
2299
spec:
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ kind: ConfigMap
2
2
apiVersion : v1
3
3
metadata :
4
4
name : maistra-operators
5
- namespace : openshift-operator-lifecycle-manager
6
5
7
6
data :
8
7
customResourceDefinitions : |-
36
35
links:
37
36
- name: Documentation
38
37
url: https://maistra.io
38
+ installModes:
39
+ - supported: true
40
+ type: OwnNamespace
41
+ - supported: true
42
+ type: SingleNamespace
43
+ - supported: true
44
+ type: MultiNamespace
45
+ - supported: true
46
+ type: AllNamespaces
39
47
install:
40
48
strategy: deployment
41
49
spec:
@@ -135,7 +143,6 @@ apiVersion: operators.coreos.com/v1alpha1
135
143
kind : CatalogSource
136
144
metadata :
137
145
name : maistra-operators
138
- namespace : openshift-operator-lifecycle-manager
139
146
spec :
140
147
sourceType : internal
141
148
configMap : maistra-operators
Original file line number Diff line number Diff line change
1
+ ---
1
2
apiVersion : apiextensions.k8s.io/v1beta1
2
3
kind : CustomResourceDefinition
3
4
metadata :
63
64
plural : clusterbuildtemplates
64
65
scope : Cluster
65
66
version : v1alpha1
66
- ---
67
- apiVersion : apiextensions.k8s.io/v1beta1
68
- kind : CustomResourceDefinition
69
- metadata :
70
- name : images.caching.internal.knative.dev
71
- spec :
72
- group : caching.internal.knative.dev
73
- names :
74
- categories :
75
- - all
76
- - knative-internal
77
- - caching
78
- kind : Image
79
- plural : images
80
- shortNames :
81
- - img
82
- singular : image
83
- scope : Namespaced
84
- version : v1alpha1
Original file line number Diff line number Diff line change 10
10
maturity : alpha
11
11
replaces : knative-build.v0.1.2
12
12
13
+ installModes :
14
+ - supported : true
15
+ type : OwnNamespace
16
+ - supported : true
17
+ type : SingleNamespace
18
+ - supported : true
19
+ type : MultiNamespace
20
+ - supported : true
21
+ type : AllNamespaces
22
+
13
23
install :
14
24
strategy : deployment
15
25
spec :
Original file line number Diff line number Diff line change 10
10
maturity : alpha
11
11
replaces : knative-eventing.v0.2.0
12
12
13
+ installModes :
14
+ - supported : true
15
+ type : OwnNamespace
16
+ - supported : true
17
+ type : SingleNamespace
18
+ - supported : true
19
+ type : MultiNamespace
20
+ - supported : true
21
+ type : AllNamespaces
22
+
13
23
install :
14
24
strategy : deployment
15
25
spec :
Original file line number Diff line number Diff line change 10
10
maturity : alpha
11
11
replaces : knative-serving.v0.2.1
12
12
13
+ installModes :
14
+ - supported : true
15
+ type : OwnNamespace
16
+ - supported : true
17
+ type : SingleNamespace
18
+ - supported : true
19
+ type : MultiNamespace
20
+ - supported : true
21
+ type : AllNamespaces
22
+
13
23
install :
14
24
strategy : deployment
15
25
spec :
You can’t perform that action at this time.
0 commit comments