statefulset

package
v1.4.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemberContainersFromSts added in v1.3.3

func GetMemberContainersFromSts(cli kubernetes.Interface, stsGetter typedappsv1.StatefulSetsGetter, namespace, stsName string, component v1alpha1.MemberType) ([]corev1.Container, error)

GetMemberContainersFromSts returns the member containers of the sts.

If no container is found, return a error.

func GetStatefulPodOrdinal

func GetStatefulPodOrdinal(podName string) int

func IsAllDesiredPodsRunningAndReady

func IsAllDesiredPodsRunningAndReady(c kubernetes.Interface, sts *appsv1.StatefulSet) bool

IsAllDesiredPodsRunningAndReady checks if all desired pods of given statefulset are running and ready

Types

This section is empty.

Jump to

Keyboard shortcuts

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