controller

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentFinalizer   = "castware.cast.ai/cleanup-helm"
	LabelDeleteCandidate = "castware.cast.ai/delete-candidate"
)

Definitions to manage status conditions

Variables

View Source
var ErrNothingToRollback = errors.New("nothing to rollback")

Functions

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	Log         logrus.FieldLogger
	Config      *config.Config
	HelmClient  helm.Client
	ChartLoader helm.ChartLoader
	Clientset   kubernetes.Interface
	RestConfig  *rest.Config
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ComponentReconciler

type ComponentReconciler struct {
	client.Client
	Scheme     *runtime.Scheme
	Log        logrus.FieldLogger
	HelmClient helm.Client
	Recorder   record.EventRecorder
	Config     *config.Config
	// contains filtered or unexported fields
}

ComponentReconciler reconciles a Component object

func (*ComponentReconciler) Reconcile

func (r *ComponentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, retErr error)

nolint:gocyclo

func (*ComponentReconciler) SetupWithManager

func (r *ComponentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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