@@ -142,15 +142,15 @@ var _ = sigDescribe(feature.Windows, "GMSA Full", framework.WithSerial(), framew
142
142
ginkgo .By ("checking that nltest /QUERY returns successfully" )
143
143
var output string
144
144
gomega .Eventually (ctx , func () error {
145
- output , err = runKubectlExecInNamespace (f .Namespace .Name , podName , "nltest" , "/QUERY" )
145
+ output , err = runKubectlExecInNamespace (f .Namespace .Name , podName , "--" , " nltest" , "/QUERY" )
146
146
if err != nil {
147
147
return fmt .Errorf ("unable to run command in container via exec: %w" , err )
148
148
}
149
149
150
150
if ! isValidOutput (output ) {
151
151
// try repairing the secure channel by running reset command
152
152
// https://kubernetes.io/docs/tasks/configure-pod-container/configure-gmsa/#troubleshooting
153
- output , err = runKubectlExecInNamespace (f .Namespace .Name , podName , "nltest" , fmt .Sprintf ("/sc_reset:%s" , gmsaDomain ))
153
+ output , err = runKubectlExecInNamespace (f .Namespace .Name , podName , "--" , " nltest" , fmt .Sprintf ("/sc_reset:%s" , gmsaDomain ))
154
154
if err != nil {
155
155
return fmt .Errorf ("unable to run command in container via exec: %w" , err )
156
156
}
@@ -283,7 +283,7 @@ func retrieveCRDManifestFileContents(ctx context.Context, f *framework.Framework
283
283
}
284
284
e2epod .NewPodClient (f ).CreateSync (ctx , pod )
285
285
286
- output , err := runKubectlExecInNamespace (f .Namespace .Name , podName , "cmd" , "/S" , "/C" , fmt .Sprintf ("type %s" , gmsaCrdManifestPath ))
286
+ output , err := runKubectlExecInNamespace (f .Namespace .Name , podName , "--" , " cmd" , "/S" , "/C" , fmt .Sprintf ("type %s" , gmsaCrdManifestPath ))
287
287
if err != nil {
288
288
framework .Failf ("failed to retrieve the contents of %q on node %q: %v" , gmsaCrdManifestPath , node .Name , err )
289
289
}
0 commit comments