func (f *Framework) LoadPodManifest(pathToManifest string) (*corev1.Pod, error) {
	manifest, err := openFile(pathToManifest)
	if err != nil {
		return nil, fmt.Errorf("Unable to open file %q: %v", pathToManifest, err)
	}
	pod := corev1.Pod{}
	if err := yaml.NewYAMLOrJSONDecoder(manifest, 100).Decode(&pod); err != nil {
		return nil, fmt.Errorf("Unable to decode file %q: %v", pathToManifest, err)
	}
	return &pod, nil
}
LoadPodManifest takes a manifest and decodes it into a pod.
package framework
import (
	"context"
	"fmt"
	"time"
	corev1 "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/util/wait"
	"k8s.io/apimachinery/pkg/util/yaml"
)
func (f *Framework) GetPod(name, namespace string) (*corev1.Pod, error) {
	return f.KubeClient.CoreV1().Pods(namespace).Get(context.TODO(), name, metav1.GetOptions{})
}