-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework reconcile loop for workspace controller
This commit represents an almost-complete overhaul of the main reconcile loop in the workspace controller. A high level overview of changes: - All controllers do full reconciling of all objects they are responsible for; this means deleting a route or the workspace deployment means it will be recreated - The main workspace controller now watches all resources it creates to trigger reconciles - The main reconcile loop is split into phases with subcontrollers; it only progresses based on status of earlier steps (i.e. if components aren't ready, we don't try to create routing) - All service/ingress/route creation is delegated to WorkspaceRouting - The openshift-oauth routingClass results in the openshift oauth-proxy container running in the main workspace deployment - There's a cleaner separation between elements in `pkg/controller` -- no imports across controllers (i.e. WorkspaceRouting imports nothing from Workspace) - All shared structs are extracted to `apis` folder - One service is created for all workspace endpoints (except discoverable endpoints) - Add Component subcontroller that converts devfile components into k8s objects A design doc and more detailed history for these changes is found at https://github.com/amisevsk/che-workspace-operator-rework Signed-off-by: Angel Misevski <amisevsk@redhat.com>
- Loading branch information
Showing
84 changed files
with
11,206 additions
and
4,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.