Documentation ¶
Index ¶
- type InvoiceReconciler
- func (r *InvoiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InvoiceReconciler) SetFailureStatus(ctx context.Context, invoice *facturnetesv1.Invoice, msg error) (ctrl.Result, error)
- func (r *InvoiceReconciler) SetSuccessStatus(ctx context.Context, invoice *facturnetesv1.Invoice) (ctrl.Result, error)
- func (r *InvoiceReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvoiceReconciler ¶
InvoiceReconciler reconciles a Invoice object
func NewReconciler ¶
func NewReconciler(mgr manager.Manager) *InvoiceReconciler
func (*InvoiceReconciler) Reconcile ¶
+kubebuilder:rbac:groups=facturnetes.cnvergence.io,resources=invoices,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=facturnetes.cnvergence.io,resources=invoices/status,verbs=get;update;patch +kubebuilder:rbac:groups=facturnetes.cnvergence.io,resources=invoices/finalizers,verbs=update +kubebuilder:rbac:groups=*,resources=deployments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=*,resources=services,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=*,resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=*,resources=ingresses,verbs=get;list;watch;create;update;patch;delete 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 Invoice 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.11.0/pkg/reconcile
func (*InvoiceReconciler) SetFailureStatus ¶
func (r *InvoiceReconciler) SetFailureStatus(ctx context.Context, invoice *facturnetesv1.Invoice, msg error) (ctrl.Result, error)
func (*InvoiceReconciler) SetSuccessStatus ¶
func (r *InvoiceReconciler) SetSuccessStatus(ctx context.Context, invoice *facturnetesv1.Invoice) (ctrl.Result, error)
func (*InvoiceReconciler) SetupWithManager ¶
func (r *InvoiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.