Skip to content

Commit 02fab2e

Browse files
author
Jeff Peeler
committed
feat(deploy): add operator group to watch all namespaces
This adds a default operator group to watch all namespaces. A new helm variable has been added called `operator_namespace` and the OLM deployment has been modified to watch all namespaces as well.
1 parent b1c663f commit 02fab2e

15 files changed

+51
-16
lines changed

Documentation/install/install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ watchedNamespaces: local
5858
# catalog_namespace is the namespace where the catalog operator will look for global catalogs.
5959
# entries in global catalogs can be resolved in any watched namespace
6060
catalog_namespace: local
61+
# operator_namespace is the namespace where the operator runs
62+
operator_namespace: local
6163

6264
# OLM operator run configuration
6365
olm:

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)