Documentation ¶
Index ¶
- type OpenShiftBuildReconciler
- func (r *OpenShiftBuildReconciler) BootstrapOpenShiftBuild(ctx context.Context, client client.Client) error
- func (r *OpenShiftBuildReconciler) CreateOrUpdate(ctx context.Context, client client.Client, ...) (controllerutil.OperationResult, error)
- func (r *OpenShiftBuildReconciler) HandleDeletion(ctx context.Context, owner *openshiftv1alpha1.OpenShiftBuild) error
- func (r *OpenShiftBuildReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *OpenShiftBuildReconciler) ReconcileSharedResource(ctx context.Context, openshiftBuild *openshiftv1alpha1.OpenShiftBuild) error
- func (r *OpenShiftBuildReconciler) ReconcileShipwrightBuild(ctx context.Context, owner *openshiftv1alpha1.OpenShiftBuild) error
- func (r *OpenShiftBuildReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ShipwrightBuildReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenShiftBuildReconciler ¶
type OpenShiftBuildReconciler struct { APIReader client.Reader Client client.Client Scheme *apiruntime.Scheme Logger logr.Logger Shipwright *shipwrightbuild.ShipwrightBuild }
OpenShiftBuildReconciler reconciles a OpenShiftBuild object
func (*OpenShiftBuildReconciler) BootstrapOpenShiftBuild ¶
func (r *OpenShiftBuildReconciler) BootstrapOpenShiftBuild(ctx context.Context, client client.Client) error
BootstrapOpenShiftBuild creates the default OpenShiftBuild instance ("cluster") if it is not present on the cluster.
func (*OpenShiftBuildReconciler) CreateOrUpdate ¶
func (r *OpenShiftBuildReconciler) CreateOrUpdate(ctx context.Context, client client.Client, object *openshiftv1alpha1.OpenShiftBuild) (controllerutil.OperationResult, error)
CreateOrUpdate will create or update v1alpha1.OpenShiftBuild resource
func (*OpenShiftBuildReconciler) HandleDeletion ¶
func (r *OpenShiftBuildReconciler) HandleDeletion(ctx context.Context, owner *openshiftv1alpha1.OpenShiftBuild) error
HandleDeletion deletes objects created by the controller
func (*OpenShiftBuildReconciler) Reconcile ¶
func (r *OpenShiftBuildReconciler) 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.
func (*OpenShiftBuildReconciler) ReconcileSharedResource ¶
func (r *OpenShiftBuildReconciler) ReconcileSharedResource(ctx context.Context, openshiftBuild *openshiftv1alpha1.OpenShiftBuild) error
ReconcileSharedResource creates and updates SharedResource objects
func (*OpenShiftBuildReconciler) ReconcileShipwrightBuild ¶
func (r *OpenShiftBuildReconciler) ReconcileShipwrightBuild(ctx context.Context, owner *openshiftv1alpha1.OpenShiftBuild) error
ReconcileShipwrightBuild creates or deletes ShipwrightBuild object
func (*OpenShiftBuildReconciler) SetupWithManager ¶
func (r *OpenShiftBuildReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ShipwrightBuildReconciler ¶
type ShipwrightBuildReconciler shipwrightoperator.ShipwrightBuildReconciler
func (*ShipwrightBuildReconciler) SetupWithManager ¶
func (r *ShipwrightBuildReconciler) SetupWithManager(mgr ctrl.Manager) error