Documentation ¶
Index ¶
- Constants
- type MeteorReconciler
- func (r *MeteorReconciler) DeleteComas(ctx context.Context) error
- func (r *MeteorReconciler) EnsureFinalizers(ctx context.Context) error
- func (r *MeteorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *MeteorReconciler) ReconcileComas(ctx context.Context) error
- func (r *MeteorReconciler) ReconcilePipelineRun(name string, ctx *context.Context, req ctrl.Request) error
- func (r *MeteorReconciler) SetCondition(kind, name string, status metav1.ConditionStatus, reason, message string)
- func (r *MeteorReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *MeteorReconciler) UpdateStatusNow(ctx context.Context, originalErr error) (ctrl.Result, error)
Constants ¶
const RequeueAfter = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeteorReconciler ¶
type MeteorReconciler struct { client.Client Scheme *runtime.Scheme Meteor *v1alpha1.Meteor Shower *v1alpha1.Shower }
MeteorReconciler reconciles a Meteor object
func (*MeteorReconciler) DeleteComas ¶
func (r *MeteorReconciler) DeleteComas(ctx context.Context) error
func (*MeteorReconciler) EnsureFinalizers ¶
func (r *MeteorReconciler) EnsureFinalizers(ctx context.Context) error
func (*MeteorReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Meteor object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*MeteorReconciler) ReconcileComas ¶
func (r *MeteorReconciler) ReconcileComas(ctx context.Context) error
func (*MeteorReconciler) ReconcilePipelineRun ¶
func (r *MeteorReconciler) ReconcilePipelineRun(name string, ctx *context.Context, req ctrl.Request) error
Submit a Tekton PipelineRun from a collection
func (*MeteorReconciler) SetCondition ¶
func (r *MeteorReconciler) SetCondition(kind, name string, status metav1.ConditionStatus, reason, message string)
Set status condition helper
func (*MeteorReconciler) SetupWithManager ¶
func (r *MeteorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*MeteorReconciler) UpdateStatusNow ¶
func (r *MeteorReconciler) UpdateStatusNow(ctx context.Context, originalErr error) (ctrl.Result, error)
Force object status update. Returns a reconcile result