Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add func WithFieldIndexer in app #588

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

chengjingtao
Copy link
Contributor

@chengjingtao chengjingtao commented May 31, 2024

Changes

  1. we should not inject field indexer when sharedIndexInformer is already started: k8s.io/[email protected]/tools/cache/shared_informer.go:446
    all runnable are started parally, like cache ( informer ) , controller. so, if cache start before controller, it will return error: informer has already started

  2. add integration resource sync period config

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • spec PR link included
  • Follows the commit message standard
  • Meets the contributing guidelines (including
    functionality, content, code)
  • Test cases with documentation and functionality works as expected using current and related github repos (MUST deploy and check)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

NONE

1. we should not inject field indexer when sharedIndexInformer is already started: k8s.io/[email protected]/tools/cache/shared_informer.go:446
   all runnable are started parally, like cache ( informer ) , controller. so, if cache start before controller, it will return error: informer has already started

Signed-off-by: jtcheng <[email protected]>
@chengjingtao chengjingtao force-pushed the feat/add-func-with-field-indexer branch 4 times, most recently from 75d5c9c to 3164336 Compare June 4, 2024 06:47
…eriod is less than or equal to 0

Signed-off-by: jtcheng <[email protected]>
@chengjingtao chengjingtao force-pushed the feat/add-func-with-field-indexer branch from 3164336 to 9948bfa Compare June 4, 2024 16:43
@chengjingtao chengjingtao merged commit 6cfefa4 into main Jun 6, 2024
2 checks passed
@chengjingtao chengjingtao deleted the feat/add-func-with-field-indexer branch June 6, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants