Documentation
¶
Overview ¶
Package controllers implements the Kubernetes controllers used to reconcile the CRD resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpController ¶
func NewOpController ¶
func NewOpController(config *rest.Config, opts runtimeMgr.Options) (*OpController, error)
NewOpController creates a new Kubernetes controller that handles the Operator CRDs. OpController creates and manages its own controller-runtime manager based on the passed options. The controller has to be started using Start(ctx) that will automatically start the underlyng controller-runtime manager.
func (*OpController) GetOperatorGroup ¶
func (c *OpController) GetOperatorGroup() *operator.Group
GetOperatorGroup returns the operator group that handles the reconciled operators.
func (*OpController) Reconcile ¶
func (c *OpController) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile runs the reconciliation logic for the OpController
func (*OpController) SetAPIServer ¶
func (c *OpController) SetAPIServer(apiServer *apiserver.APIServer)
SetAPIServer allows to set the embedded API server uf the underlying operator group. The API server lifecycle is not managed by the operator; make sure to run apiServer.Start before calling Start on the oparator.