operators

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorConditionEnvVarKey = "OPERATOR_CONDITION_NAME"
)

Variables

View Source
var (

	// AddToScheme adds all types necessary for the controller to operate.
	AddToScheme = localSchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AdoptionReconciler

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

AdoptionReconciler automagically associates Operator components with their respective operator resource.

func NewAdoptionReconciler

func NewAdoptionReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*AdoptionReconciler, error)

NewAdoptionReconciler constructs and returns an AdoptionReconciler. As a side effect, the given scheme has operator discovery types added to it.

func (*AdoptionReconciler) ReconcileClusterServiceVersion

func (r *AdoptionReconciler) ReconcileClusterServiceVersion(ctx context.Context, req ctrl.Request) (reconcile.Result, error)

ReconcileClusterServiceVersion projects the component labels of a given CSV onto all resources owned by it.

func (*AdoptionReconciler) ReconcileSubscription

func (r *AdoptionReconciler) ReconcileSubscription(ctx context.Context, req ctrl.Request) (reconcile.Result, error)

ReconcileSubscription labels the CSVs installed by a Subscription as components of an operator named after the subscribed package and install namespace.

func (*AdoptionReconciler) SetupWithManager

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

SetupWithManager adds the operator reconciler to the given controller manager.

type OperatorConditionGeneratorReconciler added in v0.18.0

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

OperatorConditionGeneratorReconciler reconciles a ClusterServiceVersion object and creates an OperatorCondition.

func NewOperatorConditionGeneratorReconciler added in v0.18.0

func NewOperatorConditionGeneratorReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorConditionGeneratorReconciler, error)

NewOperatorConditionGeneratorReconciler constructs and returns an OperatorConditionGeneratorReconciler. As a side effect, the given scheme has operator discovery types added to it.

func (*OperatorConditionGeneratorReconciler) Reconcile added in v0.18.0

func (*OperatorConditionGeneratorReconciler) SetupWithManager added in v0.18.0

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

SetupWithManager adds the OperatorCondition Reconciler reconciler to the given controller manager.

type OperatorConditionReconciler added in v0.18.0

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

OperatorConditionReconciler reconciles an OperatorCondition object.

func NewOperatorConditionReconciler added in v0.18.0

func NewOperatorConditionReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorConditionReconciler, error)

NewOperatorConditionReconciler constructs and returns an OperatorConditionReconciler. As a side effect, the given scheme has operator discovery types added to it.

func (*OperatorConditionReconciler) Reconcile added in v0.18.0

func (*OperatorConditionReconciler) SetupWithManager added in v0.18.0

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

SetupWithManager adds the OperatorCondition Reconciler reconciler to the given controller manager.

type OperatorReconciler

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

OperatorReconciler reconciles a Operator object.

func NewOperatorReconciler

func NewOperatorReconciler(cli client.Client, log logr.Logger, scheme *runtime.Scheme) (*OperatorReconciler, error)

NewOperatorReconciler constructs and returns an OperatorReconciler. As a side effect, the given scheme has operator discovery types added to it.

func (*OperatorReconciler) Reconcile

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

func (*OperatorReconciler) SetupWithManager

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

SetupWithManager adds the operator reconciler to the given controller manager.

Directories

Path Synopsis
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
internal
alongside
Package alongside provides a mechanism for recording the fact that one object was installed alongside another object as part of the installation of the same operator version.
Package alongside provides a mechanism for recording the fact that one object was installed alongside another object as part of the installation of the same operator version.
olm

Jump to

Keyboard shortcuts

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