You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit makes the following changes:
1. Bump Rukpak to use version 0.17.0
2. Modify the BundleDeployment spec accordingly
to not specify a bundle template.
3. Introduce `watchNamespaces` field in the spec
that accepts a list of namespaces to watch.
4. Fix unit and e2e tests accordingly.
Signed-off-by: Varsha Prasad Narsing <[email protected]>
Operator Lifecycle Manager (OLM) operates with cluster-admin privileges, enabling it to grant necessary permissions to the Extensions it deploys. For extensions packaged as [`RegistryV1`][registryv1] bundles, it's the responsibility of the authors to specify supported `InstallModes` in the ClusterServiceVersion ([CSV][csv]). InstallModes define the operational scope of the extension within the Kubernetes cluster, particularly in terms of namespace availability. The four recognized InstallModes are as follows:
4
+
5
+
1. OwnNamespace: This mode allows the extension to monitor and respond to events within its own deployment namespace.
6
+
1. SingleNamespace: In this mode, the extension is set up to observe events in a single, specific namespace other than the one it is deployed in.
7
+
1. MultiNamespace: This enables the extension to function across multiple specified namespaces.
8
+
1. AllNamespaces: Under this mode, the extension is equipped to monitor events across all namespaces within the cluster.
9
+
10
+
When creating a cluster extension, users have the option to define a list of `watchNamespaces`. This list determines the specific namespaces within which they intend the operator to operate. The configuration of `watchNamespaces` must align with the InstallModes supported by the extension as specified by the bundle author. The supported configurations in the order of preference are as follows:
11
+
12
+
13
+
| Length of `watchNamespaces` specified through ClusterExtension | Allowed values | Supported InstallMode in CSV | Description |
|| Entry equals Install Namespace | OwnNamespace | Extension watches only its install namespace. |
19
+
|| Entry is a specific namespace (not the Install Namespace) | SingleNamespace | Extension monitors a single, specified namespace in the spec. |
20
+
| **>1 (Multiple Entries)** | Entries are specific, multiple namespaces | MultiNamespace | Extension monitors each of the specified multiple namespaces in the spec.
0 commit comments