Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrGetStatefulSet indicates an error in getting the statefulset resource. ErrGetStatefulSet druidv1alpha1.ErrorCode = "ERR_GET_STATEFULSET" // ErrPreSyncStatefulSet indicates an error in pre-sync operations for the statefulset resource. ErrPreSyncStatefulSet druidv1alpha1.ErrorCode = "ERR_PRESYNC_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.
Click to show internal directories.
Click to hide internal directories.