-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sync cluster Workflow Template Informer before it's used (#8961)
* fix: After Controller leader election we need to make sure clusterWorkflowTemplateInformer's cache is updated first. Otherwise, we call Lister() on it before it's ready. Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> * fix: fix condition for exiting function Signed-off-by: Julie Vogelman <[email protected]> * feat: for efficiency move the call to create cluster workflow template informer before we sync Signed-off-by: Julie Vogelman <[email protected]> * feat: empty commit Signed-off-by: Julie Vogelman <[email protected]> * feat: empty commit Signed-off-by: Julie Vogelman <[email protected]> * fix: additional log line for error just in case Signed-off-by: Julie Vogelman <[email protected]> * fix: additional error handling Signed-off-by: Julie Vogelman <[email protected]> * fix: revert previous change - nil is valid Signed-off-by: Julie Vogelman <[email protected]> * fix: for safety add verification that pointer isn't nil before use Signed-off-by: Julie Vogelman <[email protected]>
- Loading branch information
1 parent
4d9f8f7
commit 1d26628
Showing
2 changed files
with
21 additions
and
8 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