controller

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 50 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// SCCAnnotation is the annotation listing SCCs for a SA
	SCCAnnotation = "cdi-scc"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new CDI Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type CertManager added in v1.13.0

type CertManager interface {
	Sync(certs []cdicerts.CertificateDefinition) error
}

CertManager is the client interface to the certificate manager/refresher

func NewCertManager added in v1.13.0

func NewCertManager(mgr manager.Manager, installNamespace string, additionalNamespaces ...string) (CertManager, error)

NewCertManager creates a new certificate manager/refresher

type ReconcileCDI

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

ReconcileCDI reconciles a CDI object

func (*ReconcileCDI) Create added in v1.24.0

func (r *ReconcileCDI) Create() controllerutil.Object

Create creates new CDI resource

func (*ReconcileCDI) GetAllResources added in v1.24.0

func (r *ReconcileCDI) GetAllResources(crObject runtime.Object) ([]runtime.Object, error)

GetAllResources provides slice of resources CDI depends on

func (*ReconcileCDI) GetDependantResourcesListObjects added in v1.24.0

func (r *ReconcileCDI) GetDependantResourcesListObjects() []runtime.Object

GetDependantResourcesListObjects provides slice of List resources corresponding to CDI-dependant resource types

func (*ReconcileCDI) IsCreating added in v1.24.0

func (r *ReconcileCDI) IsCreating(_ controllerutil.Object) (bool, error)

IsCreating checks whether operator config is missing (which means it is create-type reconciliation)

func (*ReconcileCDI) Reconcile

func (r *ReconcileCDI) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a CDI object and makes changes based on the state read and what is in the CDI.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

func (*ReconcileCDI) SetController added in v1.24.0

func (r *ReconcileCDI) SetController(controller controller.Controller)

SetController sets the controller dependency

func (*ReconcileCDI) Status added in v1.24.0

func (r *ReconcileCDI) Status(cr runtime.Object) *sdkapi.Status

Status provides CDI status sub-resource

Jump to

Keyboard shortcuts

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