@@ -350,6 +350,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
350
350
scale , err := f .ClientSet .AppsV1 ().Deployments (ns ).GetScale (name , metav1.GetOptions {})
351
351
framework .ExpectNoError (err )
352
352
if scale .Spec .Replicas != int32 (num ) {
353
+ scale .ResourceVersion = "" // indicate the scale update should be unconditional
353
354
scale .Spec .Replicas = int32 (num )
354
355
_ , err = f .ClientSet .AppsV1 ().Deployments (ns ).UpdateScale (name , scale )
355
356
framework .ExpectNoError (err )
@@ -400,6 +401,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
400
401
ginkgo .By (fmt .Sprintf ("Scale backend replicas to %d" , replicas ))
401
402
scale , err := f .ClientSet .AppsV1 ().Deployments (ns ).GetScale (name , metav1.GetOptions {})
402
403
framework .ExpectNoError (err )
404
+ scale .ResourceVersion = "" // indicate the scale update should be unconditional
403
405
scale .Spec .Replicas = int32 (replicas )
404
406
_ , err = f .ClientSet .AppsV1 ().Deployments (ns ).UpdateScale (name , scale )
405
407
framework .ExpectNoError (err )
@@ -448,6 +450,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
448
450
scale , err := f .ClientSet .AppsV1 ().Deployments (ns ).GetScale (name , metav1.GetOptions {})
449
451
framework .ExpectNoError (err )
450
452
if scale .Spec .Replicas != int32 (num ) {
453
+ scale .ResourceVersion = "" // indicate the scale update should be unconditional
451
454
scale .Spec .Replicas = int32 (num )
452
455
_ , err = f .ClientSet .AppsV1 ().Deployments (ns ).UpdateScale (name , scale )
453
456
framework .ExpectNoError (err )
0 commit comments