Documentation ¶
Index ¶
- func ConnectionInfoName(dsiName string) string
- func GetPodsWithLabels(ctx context.Context, c runtimeClient.Client, namespace string, ...) (*corev1.PodList, error)
- func IsPodReady(pod *corev1.Pod) bool
- func NPodsReady(l *corev1.PodList) int
- func NewK8sClient(ds, kubeconfig string) (client.Client, error)
- func WaitForDeletion(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client)
- func WaitForPodDeletion(ctx context.Context, pod *corev1.Pod, c runtimeClient.Client)
- func WaitForReadiness(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client)
- func WaitForReplicaReadiness(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client, ...)
- type DSIAccountValidator
- type DSIClient
- type DSICollectionValidator
- type DSIConfigurationValidator
- type DSIDeleter
- type DSIReader
- type DSIWriter
- type Object
- type PodsGetter
- type StatefulSetGetter
- type TolerationsSetter
- type WithPodAntiAffinity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionInfoName ¶
func GetPodsWithLabels ¶
func IsPodReady ¶
Determines readiness of pods by looking at container statuses
func NPodsReady ¶
NPodsReady returns number ready pods in the given PodList.
func WaitForDeletion ¶
func WaitForDeletion(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client)
func WaitForPodDeletion ¶
func WaitForReadiness ¶
func WaitForReadiness(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client)
func WaitForReplicaReadiness ¶
func WaitForReplicaReadiness(ctx context.Context, instance runtimeClient.Object, c runtimeClient.Client, replicas int, )
WaitForReplicaReadiness waits until the given number of ReplicaPods report as ready.
Types ¶
type DSIAccountValidator ¶
type DSIClient ¶
type DSIClient interface { DSIDeleter DSIReader DSIWriter DSIAccountValidator DSICollectionValidator DSIConfigurationValidator }
TODO: Create implementations for Data interface to generalize test data input
type DSICollectionValidator ¶
type DSIDeleter ¶
type Object ¶
type Object interface { ClusterStatus() string runtimeClient.Object GetClientObject() runtimeClient.Object }
type PodsGetter ¶
type StatefulSetGetter ¶
type StatefulSetGetter interface {
StatefulSet(context.Context, runtimeClient.Client) (*appsv1.StatefulSet, error)
}
type TolerationsSetter ¶
type TolerationsSetter interface {
SetTolerations(...corev1.Toleration)
}
type WithPodAntiAffinity ¶
type WithPodAntiAffinity interface { AddRequiredPodAntiAffinityTerm(antiAffinityTerm corev1.PodAffinityTerm) AddPreferredPodAntiAffinityTerm(weight int, antiAffinityTerm corev1.PodAffinityTerm) }
Click to show internal directories.
Click to hide internal directories.