Documentation ¶
Index ¶
Constants ¶
const (
// FinalizerName is the name of the finalizer put on the Che Cluster resources by the controller. Public for testing purposes.
FinalizerName = "checluster.che.eclipse.org"
)
Variables ¶
This section is empty.
Functions ¶
func CleanCheClusterInstancesForTest ¶
func CleanCheClusterInstancesForTest()
CleanCheClusterInstancesForTest is a helper function for test code in other packages that needs to re-initialize the state of the checluster instance cache.
func GetCurrentCheClusterInstances ¶
func GetCurrentCheClusterInstances() map[client.ObjectKey]chev2.CheCluster
GetCurrentCheClusterInstances returns a map of all che clusters (keyed by their namespaced name) the che cluster controller currently knows of. This returns any meaningful data only after reconciliation has taken place.
If this method is called from another controller, it effectively couples that controller with the che manager controller. Such controller will therefore have to run in the same process as the che manager controller. On the other hand, using this method, and somehow tolerating its eventual consistency, makes the other controller more efficient such that it doesn't have to find the che managers in the cluster (which is what che manager reconciler is doing).
If need be, this method can be replaced by a simply calling client.List to get all the che managers in the cluster.
Types ¶
type CheClusterReconciler ¶
type CheClusterReconciler struct {
// contains filtered or unexported fields
}
func New ¶
func New(cl client.Client, scheme *runtime.Scheme) CheClusterReconciler
New returns a new instance of the Che manager reconciler. This is mainly useful for testing because it doesn't set up any watches in the cluster, etc. For that use SetupWithManager.
func (*CheClusterReconciler) SetupWithManager ¶
func (r *CheClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
Directories ¶
Path | Synopsis |
---|---|
Package solver contains the implementation of the "devworkspace routing solver" which provides che-specific logic to the otherwise generic dev workspace routing controller.
|
Package solver contains the implementation of the "devworkspace routing solver" which provides che-specific logic to the otherwise generic dev workspace routing controller. |