Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileImageScheduled
- func (r *ReconcileImageScheduled) Cleanup(scheduled *mysqlv1beta1.ImageScheduled, ...) error
- func (r *ReconcileImageScheduled) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileImageScheduled) ScheduleNextImage(scheduled *mysqlv1beta1.ImageScheduled, active []*mysqlv1beta1.Image) (reconcile.Result, error)
- func (r *ReconcileImageScheduled) SortImages(scheduled *mysqlv1beta1.ImageScheduled, images mysqlv1beta1.ImageList) ([]*mysqlv1beta1.Image, []*mysqlv1beta1.Image, []*mysqlv1beta1.Image, error)
Constants ¶
const ( // ControllerName used for identifying which controller is performing an operation. ControllerName = "mysql-imagescheduleds" // OwnerKey used to query for child Images. OwnerKey = ".metadata.controller" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileImageScheduled ¶
type ReconcileImageScheduled struct { clock.Clock client.Client // contains filtered or unexported fields }
ReconcileImageScheduled reconciles a ImageScheduled object
func (*ReconcileImageScheduled) Cleanup ¶ added in v0.4.2
func (r *ReconcileImageScheduled) Cleanup(scheduled *mysqlv1beta1.ImageScheduled, successful, failed []*mysqlv1beta1.Image) error
Cleanup old successful and failed Images.
func (*ReconcileImageScheduled) Reconcile ¶
Reconcile reads that state of the cluster for a ImageScheduled object and makes changes based on the state read and what is in the ImageScheduled.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=mysql.skpr.io,resources=images,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=mysql.skpr.io,resources=images/status,verbs=get;update;patch +kubebuilder:rbac:groups=mysql.skpr.io,resources=imagescheduleds,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=mysql.skpr.io,resources=imagescheduleds/status,verbs=get;update;patch
func (*ReconcileImageScheduled) ScheduleNextImage ¶ added in v0.4.2
func (r *ReconcileImageScheduled) ScheduleNextImage(scheduled *mysqlv1beta1.ImageScheduled, active []*mysqlv1beta1.Image) (reconcile.Result, error)
ScheduleNextImage checks if a new Image should be created.
func (*ReconcileImageScheduled) SortImages ¶ added in v0.4.2
func (r *ReconcileImageScheduled) SortImages(scheduled *mysqlv1beta1.ImageScheduled, images mysqlv1beta1.ImageList) ([]*mysqlv1beta1.Image, []*mysqlv1beta1.Image, []*mysqlv1beta1.Image, error)
SortImages into active, successful, failed.