mirror of https://github.com/fluxcd/cli-utils.git
- Add DefaultStatusWatcher that wraps DynamicClient and manages
informers for a set of resource objects.
- Supports two modes: root-scoped & namespace-scoped.
- Root-scoped mode uses root-scoped informers to efficiency and
performance.
- Namespace-scoped mode uses namespace-scoped informers to
minimize the permissions needed to run and the size of the
in-memory object cache.
- Automatic mode selects which mode to use based on whether the
objects being watched are in one or multiple namespaces.
This is the default mode, optimizing for performance.
- If CRDs are being watched, the creation/deletion of CRDs can
cause informers for those custom resources to be created/deleted.
- In namespace-scope mode, if namespaces are being watched, the
creation/deletion of namespaces can also trigger informers to
be created/deleted.
- All creates/updates/deletes to CRDs also cause RESTMapper reset.
- Allow pods to be unschedulable for 15s before reporting the
status as Failed. Any update resets the timer.
- Add BlindStatusWatcher for testing and disabling for dry-run.
- Add DynamicClusterReader that wraps DynamicClient.
This is now used to look up generated resources
(ex: Deployment > ReplicaSets > Pods).
- Add DefaultStatusReader which uses a DelegatingStatusReader to
wrap a list of conventional and specific StatusReaders.
This should make it easier to extend the list of StatusReaders.
- Move some pending WaitEvents to be optional in tests, now that
StatusWatcher can resolve their status before the WaitTask starts.
- Add a new Thousand Deployments stress test (10x kind nodes)
- Add some new logs for easier debugging
- Add internal SyncEvent so that apply/delete tasks don't start
until the StatusWatcher has finished initial synchronization.
This helps avoid missing events from actions that happen while
synchronization is incomplete.
- Filter optional pending WaitEvents when testing.
BREAKING CHANGE: Replace StatusPoller w/ StatusWatcher
BREAKING CHANGE: Remove PollInterval (obsolete with watcher)
|
||
|---|---|---|
| .. | ||
| customprovider | ||
| e2eutil | ||
| invconfig | ||
| apply_and_destroy_test.go | ||
| artifacts_test.go | ||
| continue_on_error_test.go | ||
| crd_test.go | ||
| deletion_prevention_test.go | ||
| dependency_filter_test.go | ||
| depends_on_test.go | ||
| dry_run_test.go | ||
| e2e_suite_test.go | ||
| e2e_test.go | ||
| empty_set_test.go | ||
| exit_early_test.go | ||
| inventory_policy_test.go | ||
| mutation_test.go | ||
| name_inv_strategy_test.go | ||
| namespace_filter_test.go | ||
| prune_retrieve_error_test.go | ||
| reconcile_failed_timeout_test.go | ||
| serverside_apply_test.go | ||
| skip_invalid_test.go | ||