// PodFromManifest reads a .json/yaml file and returns the pod in it. func PodFromManifest(filename string) (*v1.Pod, error) { … } // SvcFromManifest reads a .json/yaml file and returns the service in it. func SvcFromManifest(fileName string) (*v1.Service, error) { … } // StatefulSetFromManifest returns a StatefulSet from a manifest stored in fileName in the Namespace indicated by ns. func StatefulSetFromManifest(fileName, ns string) (*appsv1.StatefulSet, error) { … } // DaemonSetFromURL reads from a url and returns the daemonset in it. func DaemonSetFromURL(ctx context.Context, url string) (*appsv1.DaemonSet, error) { … } // DaemonSetFromData reads a byte slice and returns the daemonset in it. func DaemonSetFromData(data []byte) (*appsv1.DaemonSet, error) { … }