Documentation ¶
Index ¶
- func BuildKubeConfig(kubeconfig string) (*rest.Config, error)
- func CopyObjToPod(obj interface{}) (*v1.Pod, error)
- func CopyObjToPods(obj []interface{}) ([]v1.Pod, error)
- func CopyObjToThirdPartyResource(obj interface{}) (*v1beta1.ThirdPartyResource, error)
- func SelectAnnotatedPods(pods []v1.Pod, annotation string) ([]v1.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKubeConfig ¶
Build kubeconfig for use with clients. The kubeconfig file can either be passed in as a param, or attempted to be retrieved from the in-cluster ServiceAccount.
func CopyObjToPod ¶
Attempt to deep copy an empty interface into a Pod.
func CopyObjToPods ¶
Attempt to deep copy an empty interface into a PodList.
func CopyObjToThirdPartyResource ¶
func CopyObjToThirdPartyResource(obj interface{}) (*v1beta1.ThirdPartyResource, error)
Attempt to deep copy an empty interface into a ThirdPartyResource.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.