-
Notifications
You must be signed in to change notification settings - Fork 368
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
Devops 649 fix waitforpod bug #13
Conversation
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as avobe
pkg/failover/waiter.go
Outdated
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors shouldn't have capital letters.
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
pkg/failover/waiter.go
Outdated
return nil | ||
} | ||
case <-to: | ||
return errors.New("Timeout waiting the condition") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There were a bug introduced when a the waiter was created.
To create the resources, a name is generated:
(bootstrap, redis, sentinel). When checking if the pod was created, the name passed was incorrect (was rf.Metadata.Name in stead of the generated one). This is now fixed.
Also, a timeout on waiters are added, so a failure is raised if more than 15 minutes wait.
Created a new version.