package
1.8.0
Repository: https://github.com/openkruise/kruise.git
Documentation: pkg.go.dev

# Functions

Add creates a new StatefulSet Controller and adds it to the Manager with default RBAC.
ApplyRevision returns a new StatefulSet constructed by restoring the state in revision to set.
GetStatefulsetConditition returns the condition with the provided type.
Match check if the given StatefulSet's template matches the template stored in the given history.
NewDefaultStatefulSetControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for StatefulSets.
NewRealStatefulSetStatusUpdater returns a StatusUpdaterInterface that updates the Status of a StatefulSet, using the supplied client and setLister.
NewStatefulPodControl constructs a StatefulPodControl using a realStatefulPodControlObjectManager with the given clientset, listers and EventRecorder.
NewStatefulPodControlFromManager creates a StatefulPodControl using the given StatefulPodControlObjectManager and recorder.
NewStatefulsetCondition creates a new statefulset condition.
SetStatefulsetCondition updates the statefulset to include the provided condition.
SortPodsAscendingOrdinal sorts the given Pods according to their ordinals.

# Constants

Realistic value for maximum in-flight requests when processing in parallel mode.

# Structs

ReconcileStatefulSet reconciles a StatefulSet object.
StatefulPodControl defines the interface that StatefulSetController uses to create, update, and delete Pods, Manipulation of objects is provided through objectMgr, which allows the k8s API to be mocked out for testing.

# Interfaces

PVCHandler defines an interface for handling Persistent Volume Claims (PVC) in a Kubernetes environment.
StatefulPodControlObjectManager abstracts the manipulation of Pods and PVCs.
StatefulSetControlInterface implements the control logic for updating StatefulSets and their children Pods.
StatusUpdaterInterface is an interface used to update the StatefulSetStatus associated with a StatefulSet.