operators

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(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(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 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(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
olm

Jump to

Keyboard shortcuts

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