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 <julie_vogelman@intuit.com> * fix: empty commit Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: empty commit Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: fix condition for exiting function Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * feat: for efficiency move the call to create cluster workflow template informer before we sync Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * feat: empty commit Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * feat: empty commit Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: additional log line for error just in case Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: additional error handling Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: revert previous change - nil is valid Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com> * fix: for safety add verification that pointer isn't nil before use Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
- Loading branch information