utils

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKubeConfig

func BuildKubeConfig(kubeconfig string) (*rest.Config, error)

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

func CopyObjToPod(obj interface{}) (*v1.Pod, error)

Attempt to deep copy an empty interface into a Pod.

func CopyObjToPods

func CopyObjToPods(obj []interface{}) ([]v1.Pod, error)

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.

func SelectAnnotatedPods

func SelectAnnotatedPods(pods []v1.Pod, annotation string) ([]v1.Pod, error)

Select only the Pods with the annotation from the PodList.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL