func (tc *testContext) ensureTestRunnerSA() error {
	sa := core.ServiceAccount{ObjectMeta: meta.ObjectMeta{Name: tc.workloadNamespace}}
	_, err := tc.client.K8s.CoreV1().ServiceAccounts(tc.workloadNamespace).Create(context.TODO(), &sa,
		meta.CreateOptions{})
	if err != nil && !apierrors.IsAlreadyExists(err) {
		return errors.Wrap(err, "unable to create SA")
	}
	return nil
}
// ensureTestRunnerSA ensures the proper ServiceAccount exists, a requirement for SSHing into a Windows node
// noop if the ServiceAccount already exists.
ensureTestRunnerSA ensures the proper ServiceAccount exists, a requirement for SSHing into a Windows node
noop if the ServiceAccount already exists.
// ensureTestRunnerSA ensures the proper ServiceAccount exists a requirement for SSHing into a Windows node // noop if the ServiceAccount already exists .
func (tc *testContext) ensureTestRunnerSA() error {
	sa := core.ServiceAccount{ObjectMeta: meta.ObjectMeta{Name: tc.workloadNamespace}}
	_, err := tc.client.K8s.CoreV1().ServiceAccounts(tc.workloadNamespace).Create(context.TODO(), &sa,
		meta.CreateOptions{})
	if err != nil && !apierrors.IsAlreadyExists(err) {
		return errors.Wrap(err, "unable to create SA")
	}
	return nil
}
func ( tc * testContext ) ensureTestRunnerSA ( ) error { sa := core . ServiceAccount { ObjectMeta : meta . ObjectMeta { Name : tc . workloadNamespace } } _ , err := tc . client . K8s . CoreV1 ( ) . ServiceAccounts ( tc . workloadNamespace ) . Create ( context . TODO ( ) , & sa , meta . CreateOptions { } ) if err != nil && ! apierrors . IsAlreadyExists ( err ) { return errors . Wrap ( err , " " ) } return nil }
ensureTestRunnerSA ensures the proper ServiceAccount exists, a requirement for SSHing into a Windows node
noop if the ServiceAccount already exists.
ensureTestRunnerSA ensures the proper ServiceAccount exists a requirement for SSHing into a Windows node noop if the ServiceAccount already exists .