-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NETOBSERV-1358: splitting controllers (#503)
* NETOBSERV-1358: splitting controllers - Start with a new "Monitoring" controllers that deals with ServiceMonitors / Dashboards etc - Create a Status Manager that gathers all statuses from each controller - Each status becomes eventually converted in a Condition (k8s status API), plus there is a global "Ready" status that is a merge of each component status * Add filter predicate for reconcile reqs Also: - Centralize location of the kubebuilder rbac annotations in manager.go - Update the displayed column for CLI status with new conditions - Keep just 1 status per component, not 2 (merged errors & progress into a single status) * Use sync.Map * rename package flp (because shorter) * Move FLP reconciler as a new controller - Use status manager for FLP and sub-components (ingest/transfo/monolith) - Like status, namespace management needs to be per-controller. So I'm moving away from having a dedicated field in Status, and use per-component annotations instead - Simplify a bit the reconcilers "managed objects" stuff - Less verbose narrowcache and log context, better use named loggers * Address review feedback
- Loading branch information
Showing
44 changed files
with
1,722 additions
and
1,316 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package controllers | ||
|
||
import ( | ||
"github.com/netobserv/network-observability-operator/controllers/flp" | ||
"github.com/netobserv/network-observability-operator/controllers/monitoring" | ||
"github.com/netobserv/network-observability-operator/pkg/manager" | ||
) | ||
|
||
var Registerers = []manager.Registerer{Start, flp.Start, monitoring.Start} |
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.