Skip to content

Install StackGress operator via OPERATORHUB(OLM) in the scoped mode.

Problem to solve

StackGress installation guide contains a configuration to install StackGress operator in "OwnNamespace" installation mode But it doesn't work because SG operator v 1.4.3 supports only AllNamespaces installation mode.

Further details

StackGres version 1.4.3

OLM version: v0.24.0

OLM logs:

time="2023-06-07T11:46:01Z" level=info msg="installmodeset does not support operatorgroups namespace selection" csv=stackgres.v1.4.3 id=/87cS namespace=purgatory phase=Failed reason="OwnNamespace InstallModeType not supported, cannot configure to watch own namespace"

StackGress Operator supports only AllNamespacesinstallationMode:

installModes:
    - supported: false
      type: OwnNamespace
    - supported: false
      type: SingleNamespace
    - supported: false
      type: MultiNamespace
    - supported: true
      type: AllNamespaces

It requires OperatorGroup which works globally. e.g.

apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: all-namespaces-operator-group
  namespace: my-namespace

In this case, ClusterServiceVersions StackGres will be created in each namespace

You can get more information about scoping in the official OLM documentation

Proposal

StackGress operator should support all installation modes. It should be possible to reduce the operator's scope.

Testing

Acceptance Criteria

It is possible to install StackGres operator via OLM in all modes. StackGres Operator must manage clusters in accordance with the OperatorGroup configuration.

Links / references

the official OLM documentation

Edited by V .