Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient() (*kubernetes.Clientset, error)
GetClient creates a new kubernetes client with the kubeconfig at ~/.kube/config
func GetRestConfig ¶
GetRestConfig returns a new rest.Config based on the kubeconfig at ~/.kube/config
func WaitForPodComplete ¶
func WaitForPodComplete(ctx context.Context, clientset *kubernetes.Clientset, namespace, podName string, finish chan bool) error
WaitForPodComplete waits for a specific pod to be in complete state
func WaitForPodInitialized ¶
func WaitForPodInitialized(ctx context.Context, clientset *kubernetes.Clientset, namespace, podName string) error
WaitForPodInitialized waits for a specific pod to be initialized
Types ¶
type Copy ¶
type Copy struct { Namespace string PodName string Container string SrcPath string DestPath string }
Copy contains all required information to copy a file into a pod
func (Copy) CopyFileIntoPod ¶
func (c Copy) CopyFileIntoPod(client *kubernetes.Clientset) error
CopyFileIntoPod copies the src .tar.gz into the specified container
Click to show internal directories.
Click to hide internal directories.