From dfac46de3fddacd2410d02a6c09510b1fd0a3978 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 6 Dec 2022 00:16:31 -0500 Subject: [PATCH] Fix table in sync controller comment --- .../autoregister/autoregister_controller.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/staging/src/k8s.io/kube-aggregator/pkg/controllers/autoregister/autoregister_controller.go b/staging/src/k8s.io/kube-aggregator/pkg/controllers/autoregister/autoregister_controller.go index faeefe228ce..01914585977 100644 --- a/staging/src/k8s.io/kube-aggregator/pkg/controllers/autoregister/autoregister_controller.go +++ b/staging/src/k8s.io/kube-aggregator/pkg/controllers/autoregister/autoregister_controller.go @@ -204,15 +204,14 @@ func (c *autoRegisterController) processNextWorkItem() bool { // checkAPIService syncs the current APIService against a list of desired APIService objects // -// | A. desired: not found | B. desired: sync on start | C. desired: sync always -// -// ------------------------------------------------|-----------------------|---------------------------|------------------------ -// 1. current: lookup error | error | error | error -// 2. current: not found | - | create once | create -// 3. current: no sync | - | - | - -// 4. current: sync on start, not present at start | - | - | - -// 5. current: sync on start, present at start | delete once | update once | update once -// 6. current: sync always | delete | update once | update +// | A. desired: not found | B. desired: sync on start | C. desired: sync always +// ------------------------------------------------|-----------------------|---------------------------|------------------------ +// 1. current: lookup error | error | error | error +// 2. current: not found | - | create once | create +// 3. current: no sync | - | - | - +// 4. current: sync on start, not present at start | - | - | - +// 5. current: sync on start, present at start | delete once | update once | update once +// 6. current: sync always | delete | update once | update func (c *autoRegisterController) checkAPIService(name string) (err error) { desired := c.GetAPIServiceToSync(name) curr, err := c.apiServiceLister.Get(name)