statefulsets

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: UPL-1.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFromExisting added in v0.0.29

func CopyFromExisting(expected, existing *appsv1.StatefulSet)

CopyFromExisting copies fields that should not be changed from existing to expected.

func GetPVCNames added in v0.0.29

func GetPVCNames(statefulSet *appsv1.StatefulSet) []string

GetPVCNames generates the expected PVC names of a statefulset, given its replica count {volumeClaimTemplate name}-{sts name}-{replica ordinal}

func New

New creates StatefulSet objects for a VMO resource

Types

type StatefulSetPlan added in v0.0.29

type StatefulSetPlan struct {
	Create          []*appsv1.StatefulSet
	Update          []*appsv1.StatefulSet
	Delete          []*appsv1.StatefulSet
	Conflict        error
	ExistingCluster bool
	BounceNodes     bool
}

StatefulSetPlan describes how to update the cluster statefulsets

func CreatePlan added in v0.0.29

func CreatePlan(log vzlog.VerrazzanoLogger, existingList, expectedList []*appsv1.StatefulSet) *StatefulSetPlan

CreatePlan creates a plan for sts that need to be created, updated, or deleted. if the cluster is not safe to scale down, updates/deletes will be rejected.

Jump to

Keyboard shortcuts

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