statefulset

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrGetStatefulSet indicates an error in getting the statefulset resource.
	ErrGetStatefulSet druidv1alpha1.ErrorCode = "ERR_GET_STATEFULSET"
	// ErrSyncStatefulSet indicates an error in syncing the statefulset resource.
	ErrSyncStatefulSet druidv1alpha1.ErrorCode = "ERR_SYNC_STATEFULSET"
	// ErrDeleteStatefulSet indicates an error in deleting the statefulset resource.
	ErrDeleteStatefulSet druidv1alpha1.ErrorCode = "ERR_DELETE_STATEFULSET"
)

Variables

This section is empty.

Functions

func New

func New(client client.Client, imageVector imagevector.ImageVector, featureGates map[featuregate.Feature]bool) 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,
	useEtcdWrapper bool,
	initContainerImage, etcdImage, etcdBRImage string,
	provider *string) 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