diff --git a/engineapi/instance_manager.go b/engineapi/instance_manager.go index d9f6069e77..3251ba46e9 100644 --- a/engineapi/instance_manager.go +++ b/engineapi/instance_manager.go @@ -699,6 +699,10 @@ func (c *InstanceManagerClient) engineInstanceUpgrade(req *EngineInstanceUpgrade } } + if req.EngineCLIAPIVersion >= 9 { + args = append([]string{"--engine-instance-name", req.Engine.Name}, args...) + } + binary := filepath.Join(types.GetEngineBinaryDirectoryForEngineManagerContainer(req.Engine.Spec.EngineImage), types.EngineBinaryName) if c.GetAPIVersion() < 4 {