mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Retry canary initialization on conflict
This commit is contained in:
@@ -44,7 +44,7 @@ func (c *Controller) finalize(old interface{}) error {
|
||||
c.logger.Infof("%s.%s kind %s reverted", canary.Name, canary.Namespace, canary.Spec.TargetRef.Kind)
|
||||
|
||||
// Ensure that targetRef has met a ready state
|
||||
c.logger.Infof("Checking is canary is ready %s.%s", canary.Name, canary.Namespace)
|
||||
c.logger.Infof("Checking if canary is ready %s.%s", canary.Name, canary.Namespace)
|
||||
_, err = canaryController.IsCanaryReady(canary)
|
||||
if err != nil {
|
||||
return fmt.Errorf("canary not ready during finalizing: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user