Documentation ¶
Index ¶
- func CreateNamespace(ctx context.Context, kubeCli kubernetes.Interface, namespace string) error
- func FetchNonRunningPods(ctx context.Context, workloads []corev1.ObjectReference) ([]corev1.Pod, error)
- func GetK8sVersion() (string, error)
- func WaitForDeploymentConfigReady(ctx context.Context, osCli osversioned.Interface, kubeCli kubernetes.Interface, ...) error
- func WaitForDeploymentReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, ...) error
- func WaitForPodReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, ...) error
- func WaitForStatefulSetReady(ctx context.Context, kubeCli kubernetes.Interface, namespace string, ...) error
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNamespace ¶ added in v0.0.6
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
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
Click to show internal directories.
Click to hide internal directories.