Documentation ¶
Index ¶
- type Utils
- func (t *Utils) CreatePod(name string, zone string, label string, phase v1.PodPhase, ...) *v1.Pod
- func (t *Utils) CreateSimplePod(name string, node *v1.Node) *v1.Pod
- func (t *Utils) CreateStatefulSet(replicas int32, label string) *apps.StatefulSet
- func (t *Utils) CreateStatefulSetPod(name string, zone string, phase v1.PodPhase, label string, ...) *v1.Pod
- func (t *Utils) CreateZau(statefulset string, maxUnavailable intstr.IntOrString, label string) *opsv1.ZoneAwareUpdate
- func (t *Utils) CreateZdb(maxUnavailable intstr.IntOrString, dryRun bool, label string) *opsv1.ZoneDisruptionBudget
- func (t *Utils) DeletePod(pod *v1.Pod) *v1.Pod
- func (t *Utils) GetOrCreateNode(podName string, zone string) *v1.Node
- func (t *Utils) GetPod(podName string) *v1.Pod
- func (t *Utils) GetPodZone(pod *v1.Pod) string
- func (t *Utils) GetStatefulSet(ssName string) *apps.StatefulSet
- func (t *Utils) GetZdb(name string) *opsv1.ZoneDisruptionBudget
- func (t *Utils) UpdatePod(pod *v1.Pod) *v1.Pod
- func (t *Utils) UpdatePodStatus(pod *v1.Pod, phase v1.PodPhase, condition v1.PodConditionType) *v1.Pod
- func (t *Utils) UpdateStatefulSetStatus(ss *apps.StatefulSet) *apps.StatefulSet
- func (t *Utils) UpdateZauStep(zau *opsv1.ZoneAwareUpdate, step int32, updateRevision string) *opsv1.ZoneAwareUpdate
- func (t *Utils) UpdateZdbDisruptions(zdb *opsv1.ZoneDisruptionBudget, disruptionsAllowed map[string]int32) *opsv1.ZoneDisruptionBudget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Utils ¶
func (*Utils) CreateStatefulSet ¶
func (t *Utils) CreateStatefulSet(replicas int32, label string) *apps.StatefulSet
func (*Utils) CreateStatefulSetPod ¶
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) GetOrCreateNode ¶
func (*Utils) GetStatefulSet ¶
func (t *Utils) GetStatefulSet(ssName string) *apps.StatefulSet
func (*Utils) UpdatePodStatus ¶
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
Click to show internal directories.
Click to hide internal directories.