File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -396,9 +396,6 @@ var _ = SIGDescribe("Deployment", func() {
396
396
397
397
ginkgo .By ("patching the DeploymentStatus" )
398
398
deploymentStatusPatch , err := json .Marshal (map [string ]interface {}{
399
- "metadata" : map [string ]interface {}{
400
- "labels" : map [string ]string {"test-deployment" : "patched-status" },
401
- },
402
399
"status" : map [string ]interface {}{
403
400
"readyReplicas" : testDeploymentNoReplicas ,
404
401
"availableReplicas" : testDeploymentAvailableReplicas ,
@@ -416,7 +413,9 @@ var _ = SIGDescribe("Deployment", func() {
416
413
case watch .Modified :
417
414
if deployment , ok := event .Object .(* appsv1.Deployment ); ok {
418
415
found := deployment .ObjectMeta .Name == testDeployment .Name &&
419
- deployment .ObjectMeta .Labels ["test-deployment-static" ] == "true"
416
+ deployment .Status .ReadyReplicas == testDeploymentNoReplicas &&
417
+ deployment .Status .AvailableReplicas == testDeploymentAvailableReplicas
418
+
420
419
return found , nil
421
420
}
422
421
default :
You can’t perform that action at this time.
0 commit comments