Documentation ¶
Index ¶
- Constants
- func NewStatefulSetReconciler(mgr manager.Manager, cs clients.ClientSet) reconciler.SecondaryResourceReconciler
- type ByNodeLabelUpgradeStrategy
- type ByNodeUpgradeStrategy
- type ByPodUpgradeStrategy
- type ManualUpgradeStrategy
- type PodNodeIdSupplier
- type PodNodeLabel
- type PodNodeName
- type ReconcileStatefulSet
- func (in *ReconcileStatefulSet) GetReconciler() reconcile.Reconciler
- func (in *ReconcileStatefulSet) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (in *ReconcileStatefulSet) ReconcileAllResourceOfKind(ctx context.Context, request reconcile.Request, ...) (reconcile.Result, error)
- type UpgradeStrategy
Constants ¶
View Source
const ( CreateMessage string = "successfully created StatefulSet for Coherence resource '%s'" FailedToScaleMessage string = "failed to scale Coherence resource %s from %d to %d due to error\n%s" FailedToPatchMessage string = "failed to patch Coherence resource %s due to error\n%s" EventReasonScale string = "Scaling" )
Variables ¶
This section is empty.
Functions ¶
func NewStatefulSetReconciler ¶
func NewStatefulSetReconciler(mgr manager.Manager, cs clients.ClientSet) reconciler.SecondaryResourceReconciler
NewStatefulSetReconciler returns a new StatefulSet reconciler.
Types ¶
type ByNodeLabelUpgradeStrategy ¶
type ByNodeLabelUpgradeStrategy struct {
// contains filtered or unexported fields
}
func (ByNodeLabelUpgradeStrategy) IsOperatorManaged ¶
func (in ByNodeLabelUpgradeStrategy) IsOperatorManaged() bool
func (ByNodeLabelUpgradeStrategy) RollingUpgrade ¶
func (in ByNodeLabelUpgradeStrategy) RollingUpgrade(ctx context.Context, sts *appsv1.StatefulSet, c kubernetes.Interface) (reconcile.Result, error)
type ByNodeUpgradeStrategy ¶
type ByNodeUpgradeStrategy struct {
// contains filtered or unexported fields
}
func (ByNodeUpgradeStrategy) IsOperatorManaged ¶
func (in ByNodeUpgradeStrategy) IsOperatorManaged() bool
func (ByNodeUpgradeStrategy) RollingUpgrade ¶
func (in ByNodeUpgradeStrategy) RollingUpgrade(ctx context.Context, sts *appsv1.StatefulSet, c kubernetes.Interface) (reconcile.Result, error)
type ByPodUpgradeStrategy ¶
type ByPodUpgradeStrategy struct { }
func (ByPodUpgradeStrategy) IsOperatorManaged ¶
func (in ByPodUpgradeStrategy) IsOperatorManaged() bool
func (ByPodUpgradeStrategy) RollingUpgrade ¶
func (in ByPodUpgradeStrategy) RollingUpgrade(context.Context, *appsv1.StatefulSet, kubernetes.Interface) (reconcile.Result, error)
type ManualUpgradeStrategy ¶
type ManualUpgradeStrategy struct { }
func (ManualUpgradeStrategy) IsOperatorManaged ¶
func (in ManualUpgradeStrategy) IsOperatorManaged() bool
func (ManualUpgradeStrategy) RollingUpgrade ¶
func (in ManualUpgradeStrategy) RollingUpgrade(context.Context, *appsv1.StatefulSet, kubernetes.Interface) (reconcile.Result, error)
type PodNodeIdSupplier ¶
type PodNodeLabel ¶
type PodNodeLabel struct { Label string // contains filtered or unexported fields }
type PodNodeName ¶
type PodNodeName struct { }
type ReconcileStatefulSet ¶
type ReconcileStatefulSet struct { reconciler.ReconcileSecondaryResource // contains filtered or unexported fields }
func (*ReconcileStatefulSet) GetReconciler ¶
func (in *ReconcileStatefulSet) GetReconciler() reconcile.Reconciler
func (*ReconcileStatefulSet) Reconcile ¶
func (in *ReconcileStatefulSet) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the Services for a deployment and makes changes based on the state read and the desired state based on the parent Coherence resource.
func (*ReconcileStatefulSet) ReconcileAllResourceOfKind ¶
func (in *ReconcileStatefulSet) ReconcileAllResourceOfKind(ctx context.Context, request reconcile.Request, deployment coh.CoherenceResource, storage utils.Storage) (reconcile.Result, error)
ReconcileAllResourceOfKind will process the specified reconcile request for the specified deployment. The previous state being reconciled can be obtained from the storage parameter.
type UpgradeStrategy ¶
type UpgradeStrategy interface { IsOperatorManaged() bool RollingUpgrade(context.Context, *appsv1.StatefulSet, kubernetes.Interface) (reconcile.Result, error) }
func GetUpgradeStrategy ¶
func GetUpgradeStrategy(c coh.CoherenceResource, p probe.CoherenceProbe) UpgradeStrategy
Click to show internal directories.
Click to hide internal directories.