core

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Result        = reconcile.Result{}
	ResultRequeue = reconcile.Result{Requeue: true}
)

Commonly used reconciliation results.

Functions

func HandleGetClaimError

func HandleGetClaimError(err error) (reconcile.Result, error)

HandleGetClaimError is a helper function to handle an error that was returned from a GET operation on a concrete claim type.

func ResolveClassClaimValues

func ResolveClassClaimValues(classValue, claimValue string) (string, error)

ResolveClassClaimValues validates claim value against resource class properties. if both values are defined, then the claim value is validated against the resource class value and expected to match TODO: the "matching" process will be further refined once we implement constraint policies at the resource class level

Types

type Reconciler

type Reconciler struct {
	client.Client

	DoReconcile func(corev1alpha1.ResourceClaim) (reconcile.Result, error)
	// contains filtered or unexported fields
}

Reconciler reconciles a resource claim

func NewReconciler

func NewReconciler(mgr manager.Manager, controllerName, finalizerName string, handlers map[string]ResourceHandler) *Reconciler

NewReconciler initializes and returns a new Reconciler instance.

type ResourceHandler

ResourceHandler defines resource handing functions

Jump to

Keyboard shortcuts

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