Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Commonly used reconciliation results.
Functions ¶
func HandleGetClaimError ¶
HandleGetClaimError is a helper function to handle an error that was returned from a GET operation on a concrete claim type.
func ResolveClassClaimValues ¶
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 ¶
type ResourceHandler interface {
Provision(*corev1alpha1.ResourceClass, corev1alpha1.ResourceClaim, client.Client) (corev1alpha1.Resource, error)
Find(types.NamespacedName, client.Client) (corev1alpha1.Resource, error)
SetBindStatus(types.NamespacedName, client.Client, bool) error
}
ResourceHandler defines resource handing functions
Click to show internal directories.
Click to hide internal directories.