mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #2370 from kiich/fixDeployPanic
Return as not ready if it new RS is nil
This commit is contained in:
commit
4566b1733c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue