Skip to content

Commit cbb0c00

Browse files
authored
Merge pull request #591 from jpeeler/global-namespace
Add operator namespace
2 parents c932221 + 05d688e commit cbb0c00

15 files changed

+81
-38
lines changed

Documentation/install/install.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ repo is periodically synced with openshift-ansible and should only be used for t
2222
## Run locally with minikube
2323

2424
This command starts minikube, builds the OLM containers locally with the minikube-provided docker, and uses the local configuration in [local-values.yaml](local-values.yaml) to build localized deployment resources for OLM.
25+
2526
```
2627
make run-local
2728
```
@@ -57,6 +58,8 @@ watchedNamespaces: local
5758
# catalog_namespace is the namespace where the catalog operator will look for global catalogs.
5859
# entries in global catalogs can be resolved in any watched namespace
5960
catalog_namespace: local
61+
# operator_namespace is the namespace where the operator runs
62+
operator_namespace: local
6063

6164
# OLM operator run configuration
6265
olm:
@@ -87,18 +90,18 @@ To configure a release of OLM for installation in a cluster:
8790
8891
1. Create a `my-values.yaml` like the example above with the desired configuration or choose an existing one from this repository. The latest production values can be found in [deploy/tectonic-alm-operator/values.yaml](../../deploy/tectonic-alm-operator/values.yaml).
8992
1. Generate deployment files from the templates and the `my-values.yaml` using `package-release.sh`
93+
9094
```bash
9195
# first arg must be a semver-compatible version string
9296
# second arg is the output directory
9397
# third arg is the values.yaml file
9498
./scripts/package-release.sh 1.0.0-myolm ./my-olm-deployment my-values.yaml
9599
```
96-
1. Deploy to kubernetes: `kubectl apply -f ./my-olm-deployment/templates/`
97100

101+
1. Deploy to kubernetes: `kubectl apply -f ./my-olm-deployment/templates/`
98102

99103
The above steps are automated for official releases with `make ver=0.3.0 release`, which will output new versions of manifests in `deploy/tectonic-alm-operator/manifests/$(ver)`.
100104

101-
102105
## Subscribe to a Package and Channel
103106

104107
Cloud Services can be installed from the catalog by subscribing to a channel in the corresponding package.

Documentation/install/local-values-shift.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ rbacApiVersion: authorization.openshift.io
22
namespace: local
33
watchedNamespaces: local
44
catalog_namespace: local
5+
operator_namespace: local
56
debug: true
67

78
olm:

Documentation/install/local-values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ rbacApiVersion: rbac.authorization.k8s.io
22
namespace: local
33
watchedNamespaces: local
44
catalog_namespace: local
5+
operator_namespace: local
56
debug: true
67

78
olm:

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ metadata:
44
name: {{ .Values.namespace }}
55
labels:
66
openshift.io/run-level: "1"
7+
---
8+
apiVersion: v1
9+
kind: Namespace
10+
metadata:
11+
name: {{ .Values.operator_namespace }}

deploy/chart/templates/0000_30_14-operatorgroup.crd.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ spec:
7474
- lastUpdated
7575
type: object
7676
required:
77-
- metadata
78-
- spec
77+
- metadata
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: operators.coreos.com/v1alpha2
2+
kind: OperatorGroup
3+
metadata:
4+
name: global-operators
5+
namespace: {{ .Values.operator_namespace }}

deploy/chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rbacApiVersion: rbac.authorization.k8s.io
22
namespace: operator-lifecycle-manager
33
catalog_namespace: operator-lifecycle-manager
4+
operator_namespace: operators
45
imagestream: false
56
debug: false
67
olm:

deploy/ocp/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rbacApiVersion: rbac.authorization.k8s.io
22
namespace: openshift-operator-lifecycle-manager
33
catalog_namespace: openshift-operator-lifecycle-manager
4+
operator_namespace: openshift-operators
45
imagestream: true
56
olm:
67
replicaCount: 1
@@ -25,4 +26,4 @@ package:
2526
internalPort: 5443
2627
catalog_sources:
2728
- rh-operators
28-
- certified-operators
29+
- certified-operators

deploy/okd/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rbacApiVersion: rbac.authorization.k8s.io
22
namespace: openshift-operator-lifecycle-manager
33
catalog_namespace: openshift-operator-lifecycle-manager
4+
operator_namespace: openshift-operators
45
imagestream: false
56
olm:
67
replicaCount: 1
@@ -24,4 +25,4 @@ package:
2425
service:
2526
internalPort: 5443
2627
catalog_sources:
27-
- rh-operators
28+
- rh-operators

deploy/upstream/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rbacApiVersion: rbac.authorization.k8s.io
22
namespace: olm
33
catalog_namespace: olm
4+
operator_namespace: operators
45
imagestream: false
56
olm:
67
replicaCount: 1
@@ -24,4 +25,4 @@ package:
2425
service:
2526
internalPort: 5443
2627
catalog_sources:
27-
- rh-operators
28+
- rh-operators

0 commit comments

Comments
 (0)