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

Devops 649 fix waitforpod bug #13

Merged
merged 5 commits into from
Jan 2, 2018
Merged

Conversation

jchanam
Copy link
Collaborator

@jchanam jchanam commented Jan 2, 2018

There were a bug introduced when a the waiter was created.

To create the resources, a name is generated:

  • rfb-NAME
  • rfr-NAME
  • rfs-NAME

(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.

@jchanam jchanam requested a review from a team January 2, 2018 10:54
return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as avobe

}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

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.

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

return nil
}
case <-to:
return errors.New("Timeout waiting the condition")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@jchanam jchanam merged commit b2dfdcd into master Jan 2, 2018
@jchanam jchanam deleted the devops-649-fix-waitforpod-bug branch January 2, 2018 11:05
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