[devworkspace] How to handle configuration spread across DWO, WTO and DWCO #19326
Labels
area/che-operator
Issues and PRs related to Eclipse Che Kubernetes Operator
engine/devworkspace
Issues related to Che configured to use the devworkspace controller as workspace engine.
kind/enhancement
A feature request - must adhere to the feature request template.
severity/P1
Has a major impact to usage or development of the system.
Abbreviations used:
WTO - web terminal operator
DWCO - devworkspace che operator (considered merged with che operator)
DWO - devworkspace operator
This is recap of possible solutions to our problem of configuring multiple operators using a single(-ish) source of truth. I personally prefer the 3rd variant - contextual config of DWO - but we should discuss all the alternatives and pick the one that suited best to our whole "ecosystem".
Handling configuration across components
Constraints
Possible solutions
Configuration spread across configuration of individual operators
Pros:
Cons:
Lower level operator (DWO) configured through the higher level operator that installed it (WTO or DWCO)
Configuration of WTO and DWCO are superets of configuration of DWO. The operator that installs DWO has enough permissions
to configure DWO. The other operator cannot configure DWO and needs to somehow communicate that to the user.
Pros:
Cons:
Contextual lower level configuration based on the source of config (WTO, DWCO)
Configuration of WTO and DWCO are supersets of configuration of DWO. There exists multiple copies of configuration for DWO
each containing specifics for the respective top level operator. This would be handled by a new CRD and the CRs would be owned the respective top-level operator deployments.
At workspace reconciliation time, DWO would pick the configuration to use based on
routingClass
of the Devworkspace being deployed (or maybe label or some other attribute that we need to add to the schema).Top level operators would contain all the configuration and would cascade the DWO portions to the contextual CR they own.
Pros:
Cons:
The text was updated successfully, but these errors were encountered: