config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K3OSConfigReconciler

type K3OSConfigReconciler struct {
	// contains filtered or unexported fields
}

K3OSConfigReconciler reconciles a K3OSConfig object.

func (*K3OSConfigReconciler) Reconcile

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

Reconcile handles K3OSConfig CRs.

func (*K3OSConfigReconciler) SetupWithManager

func (r *K3OSConfigReconciler) SetupWithManager(shutdownCtx context.Context, mgr ctrl.Manager, options ...Option) error

SetupWithManager is called in main to setup the K3OSConfig reconiler with the manager as a non-leader.

type Option

type Option interface{}

Option denotes an option for configuring this controller.

func RequireLeaderElection

func RequireLeaderElection() Option

RequireLeaderElection returns an option that requires the operator being the leader to run this controller instance.

func WithConfiguration added in v0.3.0

func WithConfiguration(configuration *config.Configuration) Option

WithConfiguration returns an option to make the configuration available to the controller.

func WithNodeLister added in v0.3.0

func WithNodeLister(nodeLister listersv1.NodeLister) Option

WithNodeLister returns an option to make the node lister available to the controller.

Jump to

Keyboard shortcuts

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