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 ¶
func New(log vzlog.VerrazzanoLogger, vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, storageClass *storagev1.StorageClass, initialMasterNodes string) ([]*appsv1.StatefulSet, error)
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.
Click to show internal directories.
Click to hide internal directories.