Commit 6236dfb5 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #44859 from sttts/sttts-e2e-rs-nil

Automatic merge from submit-queue (batch tested with PRs 44788, 44859) e2e: handle nil ReplicaSet in checkDeploymentRevision
parents a9454bab 6b066ee1
......@@ -132,6 +132,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision
// Check revision of the new replica set of this deployment
newRS, err := deploymentutil.GetNewReplicaSet(deployment, c)
Expect(err).NotTo(HaveOccurred())
Expect(newRS).NotTo(Equal(nil))
Expect(newRS.Annotations).NotTo(Equal(nil))
Expect(newRS.Annotations[deploymentutil.RevisionAnnotation]).Should(Equal(revision))
// Check revision of This deployment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment