diff --git a/tests/e2e/util/istioctl/istioctl.go b/tests/e2e/util/istioctl/istioctl.go index 309bc1b3db..10993f556c 100644 --- a/tests/e2e/util/istioctl/istioctl.go +++ b/tests/e2e/util/istioctl/istioctl.go @@ -53,6 +53,9 @@ func CreateRemoteSecret(remoteKubeconfig, namespace, secretName, internalIP stri if len(additionalFlags) != 0 { cmd += (" " + strings.Join(additionalFlags, " ")) } + if env.GetBool("OCP", false) { + cmd += " --create-service-account=false" + } yaml, err := shell.ExecuteCommand(cmd)