Documentation
¶
Index ¶
- Constants
- type ISBServiceRolloutReconciler
- func (r *ISBServiceRolloutReconciler) AssessUpgradingChild(ctx context.Context, existingUpgradingChildDef *unstructured.Unstructured) (apiv1.AssessmentResult, error)
- func (r *ISBServiceRolloutReconciler) ChildNeedsUpdating(ctx context.Context, from, to *unstructured.Unstructured) (bool, error)
- func (r *ISBServiceRolloutReconciler) CreateUpgradingChildDefinition(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, name string) (*unstructured.Unstructured, error)
- func (r *ISBServiceRolloutReconciler) ErrorHandler(isbServiceRollout *apiv1.ISBServiceRollout, err error, reason, msg string)
- func (r *ISBServiceRolloutReconciler) GetChildTypeString() string
- func (r *ISBServiceRolloutReconciler) GetPipelineList(ctx context.Context, rolloutNamespace string, rolloutName string) (*unstructured.UnstructuredList, error)
- func (r *ISBServiceRolloutReconciler) GetRolloutKey(rolloutNamespace string, rolloutName string) string
- func (r *ISBServiceRolloutReconciler) IncrementChildCount(ctx context.Context, rolloutObject ctlrcommon.RolloutObject) (int32, error)
- func (r *ISBServiceRolloutReconciler) MarkRolloutPaused(ctx context.Context, rollout client.Object, paused bool) error
- func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPostUpgrade(ctx context.Context, rolloutPromotedChildStatus *apiv1.PromotedChildStatus, ...) (bool, error)
- func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPreUpgrade(ctx context.Context, rolloutPromotedChildStatus *apiv1.PromotedChildStatus, ...) (bool, error)
- func (r *ISBServiceRolloutReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ISBServiceRolloutReconciler) Recycle(ctx context.Context, isbsvc *unstructured.Unstructured, c client.Client) (bool, error)
- func (r *ISBServiceRolloutReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
const (
ControllerISBSVCRollout = "isbsvc-rollout-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISBServiceRolloutReconciler ¶
type ISBServiceRolloutReconciler struct {
// contains filtered or unexported fields
}
ISBServiceRolloutReconciler reconciles an ISBServiceRollout object
func NewISBServiceRolloutReconciler ¶
func NewISBServiceRolloutReconciler( c client.Client, s *runtime.Scheme, customMetrics *metrics.CustomMetrics, recorder record.EventRecorder, ) *ISBServiceRolloutReconciler
func (*ISBServiceRolloutReconciler) AssessUpgradingChild ¶ added in v0.13.0
func (r *ISBServiceRolloutReconciler) AssessUpgradingChild(ctx context.Context, existingUpgradingChildDef *unstructured.Unstructured) (apiv1.AssessmentResult, error)
AssessUpgradingChild makes an assessment of the upgrading child to determine if it was successful, failed, or still not known This implements a function of the progressiveController interface
func (*ISBServiceRolloutReconciler) ChildNeedsUpdating ¶ added in v0.11.0
func (r *ISBServiceRolloutReconciler) ChildNeedsUpdating(ctx context.Context, from, to *unstructured.Unstructured) (bool, error)
ChildNeedsUpdating determines if the difference between the current child definition and the desired child definition requires an update This implements a function of the progressiveController interface
func (*ISBServiceRolloutReconciler) CreateUpgradingChildDefinition ¶ added in v0.11.0
func (r *ISBServiceRolloutReconciler) CreateUpgradingChildDefinition(ctx context.Context, rolloutObject ctlrcommon.RolloutObject, name string) (*unstructured.Unstructured, error)
CreateUpgradingChildDefinition creates an InterstepBufferService in an "upgrading" state with the given name This implements a function of the progressiveController interface
func (*ISBServiceRolloutReconciler) ErrorHandler ¶
func (r *ISBServiceRolloutReconciler) ErrorHandler(isbServiceRollout *apiv1.ISBServiceRollout, err error, reason, msg string)
func (*ISBServiceRolloutReconciler) GetChildTypeString ¶
func (r *ISBServiceRolloutReconciler) GetChildTypeString() string
for the purpose of logging
func (*ISBServiceRolloutReconciler) GetPipelineList ¶
func (r *ISBServiceRolloutReconciler) GetPipelineList(ctx context.Context, rolloutNamespace string, rolloutName string) (*unstructured.UnstructuredList, error)
func (*ISBServiceRolloutReconciler) GetRolloutKey ¶
func (r *ISBServiceRolloutReconciler) GetRolloutKey(rolloutNamespace string, rolloutName string) string
func (*ISBServiceRolloutReconciler) IncrementChildCount ¶ added in v0.11.0
func (r *ISBServiceRolloutReconciler) IncrementChildCount(ctx context.Context, rolloutObject ctlrcommon.RolloutObject) (int32, error)
IncrementChildCount updates the count of children for the Resource in Kubernetes and returns the index that should be used for the next child This implements a function of the RolloutController interface
func (*ISBServiceRolloutReconciler) MarkRolloutPaused ¶
func (*ISBServiceRolloutReconciler) ProcessPromotedChildPostUpgrade ¶ added in v0.13.0
func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPostUpgrade( ctx context.Context, rolloutPromotedChildStatus *apiv1.PromotedChildStatus, promotedChildDef *unstructured.Unstructured, c client.Client, ) (bool, error)
func (*ISBServiceRolloutReconciler) ProcessPromotedChildPreUpgrade ¶ added in v0.13.0
func (r *ISBServiceRolloutReconciler) ProcessPromotedChildPreUpgrade( ctx context.Context, rolloutPromotedChildStatus *apiv1.PromotedChildStatus, promotedChildDef *unstructured.Unstructured, c client.Client, ) (bool, error)
func (*ISBServiceRolloutReconciler) Reconcile ¶
func (r *ISBServiceRolloutReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile
func (*ISBServiceRolloutReconciler) Recycle ¶ added in v0.11.0
func (r *ISBServiceRolloutReconciler) Recycle(ctx context.Context, isbsvc *unstructured.Unstructured, c client.Client) (bool, error)
Recycle deletes child; returns true if it was in fact deleted This implements a function of the RolloutController interface
func (*ISBServiceRolloutReconciler) SetupWithManager ¶
func (r *ISBServiceRolloutReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.