Skip to content

Commit fe3aea4

Browse files
committed
address linter issue
1 parent eee637a commit fe3aea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/internal/kubernetes/utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,9 @@ func ExecCmdOnPod(ctx context.Context, clientset *kubernetes.Clientset, namespac
500500
return result, errors.Wrapf(err, "could not execute the cmd %s on %s", cmd, podName)
501501
}
502502

503-
func ExecCmdOnPodOnce(ctx context.Context, clientset *kubernetes.Clientset, namespace, podName, containerName string, cmd []string, config *rest.Config) ([]byte, []byte, error) {
503+
// ExecCmdOnPodOnce runs a command on the specified pod and returns its standard output, standard error output, and error in that order
504+
// The command does not retry when the command fails (ex: due to timeout), unlike ExecCmdOnPod
505+
func ExecCmdOnPodOnce(ctx context.Context, clientset *kubernetes.Clientset, namespace, podName, containerName string, cmd []string, config *rest.Config) ([]byte, []byte, error) { // nolint
504506
req := clientset.CoreV1().RESTClient().Post().
505507
Resource("pods").
506508
Name(podName).

0 commit comments

Comments
 (0)