File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -436,13 +436,22 @@ func checkUpgrade(t *testing.T) {
436
436
437
437
// change image to 1.8.1-tetrate-v0
438
438
image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0"
439
+ // Update the Istiod image
439
440
patch := fmt .Sprintf (`{"spec":{"template":{"spec":{"containers":[{"name":"discovery","image":"%s"}]}}}}` ,
440
441
image )
441
442
cmd = exec .Command ("kubectl" , "patch" , "deployment" ,
442
443
"-nistio-system" , "istiod" , "-p" , patch )
443
444
cmd .Stdout = os .Stdout
444
445
cmd .Stderr = os .Stderr
445
446
require .NoError (t , cmd .Run ())
447
+ // Update the ingress gateway image
448
+ patch = fmt .Sprintf (`{"spec":{"template":{"spec":{"containers":[{"name":"istio-proxy","image":"%s"}]}}}}` ,
449
+ image )
450
+ cmd = exec .Command ("kubectl" , "patch" , "deployment" ,
451
+ "-nistio-system" , "istio-ingressgateway" , "-p" , patch )
452
+ cmd .Stdout = os .Stdout
453
+ cmd .Stderr = os .Stderr
454
+ require .NoError (t , cmd .Run ())
446
455
require .Eventually (t , func () bool {
447
456
cmd := exec .Command ("./getmesh" , "check-upgrade" )
448
457
buf := new (bytes.Buffer )
You can’t perform that action at this time.
0 commit comments