statefulset

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrGetStatefulSet indicates an error in getting the statefulset resource.
	ErrGetStatefulSet druidapicommon.ErrorCode = "ERR_GET_STATEFULSET"
	// ErrSyncStatefulSet indicates an error in syncing the statefulset resource.
	ErrSyncStatefulSet druidapicommon.ErrorCode = "ERR_SYNC_STATEFULSET"
	// ErrDeleteStatefulSet indicates an error in deleting the statefulset resource.
	ErrDeleteStatefulSet druidapicommon.ErrorCode = "ERR_DELETE_STATEFULSET"
	// ErrGetEtcdOpsTask indicates an error in getting the EtcdOpsTask resource.
	ErrGetEtcdOpsTask druidapicommon.ErrorCode = "ERR_GET_ETCDOPSTASK"
	// ErrCreateEtcdOpsTask indicates an error in creating the EtcdOpsTask resource.
	ErrCreateEtcdOpsTask druidapicommon.ErrorCode = "ERR_CREATE_ETCDOPSTASK"
	// ErrGetEtcdWrapperImage indicates an error in getting the etcd wrapper image from the image vector.
	ErrGetEtcdWrapperImage druidapicommon.ErrorCode = "ERR_GET_ETCD_WRAPPER_IMAGE"
)

Variables

This section is empty.

Functions

func New

func New(client client.Client, imageVector imagevector.ImageVector) component.Operator

New returns a new statefulset component operator.

Types

type StatefulSetMatcher

type StatefulSetMatcher struct {
	// contains filtered or unexported fields
}

StatefulSetMatcher is the type used for matching StatefulSets. It holds relevant information required for matching.

func NewStatefulSetMatcher

func NewStatefulSetMatcher(g *WithT,
	cl client.Client,
	etcd *druidv1alpha1.Etcd,
	replicas int32,
	initContainerImage, etcdImage, etcdBRImage string,
	provider *string,
	expectNoServiceAccount, expectNoService bool) StatefulSetMatcher

NewStatefulSetMatcher constructs a new instance of StatefulSetMatcher.

func (StatefulSetMatcher) MatchStatefulSet

func (s StatefulSetMatcher) MatchStatefulSet() gomegatypes.GomegaMatcher

MatchStatefulSet returns a custom gomega matcher that will match both the ObjectMeta and Spec of a StatefulSet.

Jump to

Keyboard shortcuts

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