kube

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace added in v0.0.6

func CreateNamespace(ctx context.Context, kubeCli kubernetes.Interface, namespace string) error

CreateNamespace creates namespace

func FetchNonRunningPods added in v0.0.5

func FetchNonRunningPods(ctx context.Context, workloads []corev1.ObjectReference) ([]corev1.Pod, error)

FetchNonRunningPods returns list of non running Pods owned by the workloads

func GetK8sVersion added in v0.0.5

func GetK8sVersion() (string, error)

GetK8sVersion returns Kubernetes server version

func WaitForDeploymentConfigReady

func WaitForDeploymentConfigReady(ctx context.Context, osCli osversioned.Interface, kubeCli kubernetes.Interface, namespace string, name string) error

WaitForDeploymentConfigReady waits till the deployment config gets ready

func WaitForDeploymentReady

func WaitForDeploymentReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, name string) error

WaitForDeploymentReady waits till the deployment gets ready

func WaitForPodReady

func WaitForPodReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, name string) error

WaitForPodReady waits till the pod gets ready

func WaitForStatefulSetReady

func WaitForStatefulSetReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, name string) error

WaitForStatefulSetReady waits till the statefulset gets ready

Types

type Client added in v0.0.5

type Client struct {
	KubeCli      kubernetes.Interface
	OSCli        osversioned.Interface
	DiscoveryCli discovery.DiscoveryInterface
}

Client contains Kubernetes clients to call APIs

func NewClient added in v0.0.5

func NewClient() (*Client, error)

NewClient initializes and returns client object

Jump to

Keyboard shortcuts

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