Fix table in sync controller comment

This commit is contained in:
Jordan Liggitt 2022-12-06 00:16:31 -05:00
parent 3e26e104bd
commit dfac46de3f
No known key found for this signature in database

View File

@ -204,15 +204,14 @@ func (c *autoRegisterController) processNextWorkItem() bool {
// checkAPIService syncs the current APIService against a list of desired APIService objects // 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 // | A. desired: not found | B. desired: sync on start | C. desired: sync always
// // ------------------------------------------------|-----------------------|---------------------------|------------------------
// ------------------------------------------------|-----------------------|---------------------------|------------------------ // 1. current: lookup error | error | error | error
// 1. current: lookup error | error | error | error // 2. current: not found | - | create once | create
// 2. current: not found | - | create once | create // 3. current: no sync | - | - | -
// 3. current: no sync | - | - | - // 4. current: sync on start, not present at start | - | - | -
// 4. current: sync on start, not present at start | - | - | - // 5. current: sync on start, present at start | delete once | update once | update once
// 5. current: sync on start, present at start | delete once | update once | update once // 6. current: sync always | delete | update once | update
// 6. current: sync always | delete | update once | update
func (c *autoRegisterController) checkAPIService(name string) (err error) { func (c *autoRegisterController) checkAPIService(name string) (err error) {
desired := c.GetAPIServiceToSync(name) desired := c.GetAPIServiceToSync(name)
curr, err := c.apiServiceLister.Get(name) curr, err := c.apiServiceLister.Get(name)