foo

package
v0.0.0-...-a9fa893 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(ctx context.Context, client client.Client, foo *v1alpha1.Foo, loader loader.ObjectLoader, logger *logr.Logger) *adapter

NewAdapter creates and returns an Adapter instance.

Types

type Controller

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

Controller reconciles a Foo object

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*Controller) Register

func (c *Controller) Register(mgr ctrl.Manager, log *logr.Logger, _ cluster.Cluster) error

Register registers the controller with the passed manager and log.

func (*Controller) SetupCache

func (c *Controller) SetupCache(mgr ctrl.Manager) error

SetupCache indexes the Bar spec.foo field, so it is possible to list filtering by that field.

Jump to

Keyboard shortcuts

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