Merge pull request #2370 from kiich/fixDeployPanic

Return as not ready if it new RS is nil
This commit is contained in:
Taylor Thomas 2017-05-02 10:41:20 -07:00 committed by GitHub
commit 4566b1733c

View file

@ -92,7 +92,7 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
}
// Find RS associated with deployment
newReplicaSet, err := deploymentutil.FindNewReplicaSet(currentDeployment, replicaSets)
if err != nil {
if err != nil || newReplicaSet == nil {
return false, err
}
newDeployment := deployment{