func (tk *TestKubeconfig) ReadFileViaContainer(podName, containerName string, path string) (string, error) {
	ginkgo.By("reading a file in the container")

	stdout, stderr, err := tk.kubectlExecWithRetry(tk.Namespace, podName, containerName, "--", "cat", path)
	if err != nil {
		e2elog.Logf("error running kubectl exec to read file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr))
	}
	return string(stdout), err
}
// ReadFileViaContainer reads a file using kubectl exec cat <path>.
ReadFileViaContainer reads a file using kubectl exec cat .
// ReadFileViaContainer reads a file using kubectl exec cat <path > .
func (tk *TestKubeconfig) ReadFileViaContainer(podName, containerName string, path string) (string, error) {
	ginkgo.By("reading a file in the container")
	stdout, stderr, err := tk.kubectlExecWithRetry(tk.Namespace, podName, containerName, "--", "cat", path)
	if err != nil {
		e2elog.Logf("error running kubectl exec to read file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr))
	}
	return string(stdout), err
}
func ( tk * TestKubeconfig ) ReadFileViaContainer ( podName , containerName string , path string ) ( string , error ) { ginkgo . By ( " " ) stdout , stderr , err := tk . kubectlExecWithRetry ( tk . Namespace , podName , containerName , " " , " " , path ) if err != nil { e2elog . Logf ( " \n \n " , err , string ( stdout ) , string ( stderr ) ) } return string ( stdout ) , err }
ReadFileViaContainer reads a file using kubectl exec cat .
ReadFileViaContainer reads a file using kubectl exec cat .