Merge pull request #2370 from kiich/fixDeployPanic

Return as not ready if it new RS is nil
pull/2371/head
Taylor Thomas 7 years ago committed by GitHub
commit 4566b1733c

@ -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{

Loading…
Cancel
Save