controllers

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

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

type OpController struct {
	client.Client
	// contains filtered or unexported fields
}

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.

func (*OpController) Start

func (c *OpController) Start(ctx context.Context) error

Start starts runtimeCtrl. It blocks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL