oracle/oracle-database-operator

CDB and PDB resources cannot be operated in other namespaces than the one for OraOperator

ilfur opened this issue · 1 comments

ilfur commented

OraOperator is installed in namespace "oracle-database-operator-system".
CDB resource is installed in another namespace, like "central-database".
PDB resource is installed in another namespace, like "myappdeployment".

The PDB resource needs to reference the CDB in charge to have create/clone/delete operations performed.
But the PDB YAML does not allow to specify the CDB's namespace, only the CDB name:
when specifying a namespace plus name (dot separated syntax), OraOperator cannot find the CDB resource.

When putting the PDB into the same namespace as the CDB (so it can be referenced properly),
then OraOperator is unable to contact the ORDS container because of the missing namespace in it's DNS name.
It should be "https://.:"

Please make OraOperator respect the namespaces of it's managed resources, where they are located in.
Please do NOT make OraOperator capable of having it installed multiple times. Operators should exist only once system-wide, or there may be many follow-up problems...

Fixed pls have a look at docs/multitenant/usecase03