test

package
v0.0.0-...-4a1a1e7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Utils

type Utils struct {
	Ctx    context.Context
	Client client.Client
}

func (*Utils) CreatePod

func (t *Utils) CreatePod(name string, zone string, label string, phase v1.PodPhase, condition v1.PodConditionType) *v1.Pod

func (*Utils) CreateSimplePod

func (t *Utils) CreateSimplePod(name string, node *v1.Node) *v1.Pod

func (*Utils) CreateStatefulSet

func (t *Utils) CreateStatefulSet(replicas int32, label string) *apps.StatefulSet

func (*Utils) CreateStatefulSetPod

func (t *Utils) CreateStatefulSetPod(name string, zone string, phase v1.PodPhase, label string, ss *apps.StatefulSet) *v1.Pod

func (*Utils) CreateZau

func (t *Utils) CreateZau(statefulset string, maxUnavailable intstr.IntOrString, label string) *opsv1.ZoneAwareUpdate

func (*Utils) CreateZdb

func (t *Utils) CreateZdb(maxUnavailable intstr.IntOrString, dryRun bool, label string) *opsv1.ZoneDisruptionBudget

func (*Utils) DeletePod

func (t *Utils) DeletePod(pod *v1.Pod) *v1.Pod

func (*Utils) GetOrCreateNode

func (t *Utils) GetOrCreateNode(podName string, zone string) *v1.Node

func (*Utils) GetPod

func (t *Utils) GetPod(podName string) *v1.Pod

func (*Utils) GetPodZone

func (t *Utils) GetPodZone(pod *v1.Pod) string

func (*Utils) GetStatefulSet

func (t *Utils) GetStatefulSet(ssName string) *apps.StatefulSet

func (*Utils) GetZdb

func (t *Utils) GetZdb(name string) *opsv1.ZoneDisruptionBudget

func (*Utils) UpdatePod

func (t *Utils) UpdatePod(pod *v1.Pod) *v1.Pod

func (*Utils) UpdatePodStatus

func (t *Utils) UpdatePodStatus(pod *v1.Pod, phase v1.PodPhase, condition v1.PodConditionType) *v1.Pod

func (*Utils) UpdateStatefulSetStatus

func (t *Utils) UpdateStatefulSetStatus(ss *apps.StatefulSet) *apps.StatefulSet

func (*Utils) UpdateZauStep

func (t *Utils) UpdateZauStep(zau *opsv1.ZoneAwareUpdate, step int32, updateRevision string) *opsv1.ZoneAwareUpdate

func (*Utils) UpdateZdbDisruptions

func (t *Utils) UpdateZdbDisruptions(zdb *opsv1.ZoneDisruptionBudget, disruptionsAllowed map[string]int32) *opsv1.ZoneDisruptionBudget

Jump to

Keyboard shortcuts

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