storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureBucket

func ConfigureBucket(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigureBucket configures the supplied resource (presumed to be a Bucket) using the supplied resource claim (presumed to be a Bucket) and resource class.

func SetupBucket added in v0.6.0

func SetupBucket(mgr ctrl.Manager, l logging.Logger) error

SetupBucket adds a controller that reconciles Bucket managed resources.

func SetupBucketClaimBinding added in v0.6.0

func SetupBucketClaimBinding(mgr ctrl.Manager, l logging.Logger) error

SetupBucketClaimBinding adds a controller that reconciles Bucket claims with GCS Buckets, dynamically provisioning them if needed.

func SetupBucketClaimDefaulting added in v0.6.0

func SetupBucketClaimDefaulting(mgr ctrl.Manager, l logging.Logger) error

SetupBucketClaimDefaulting adds a controller that reconciles Bucket claims that omit their resource ref, class ref, and class selector by choosing a default GCS BucketClass if one exists.

func SetupBucketClaimScheduling added in v0.6.0

func SetupBucketClaimScheduling(mgr ctrl.Manager, l logging.Logger) error

SetupBucketClaimScheduling adds a controller that reconciles Bucket claims that include a class selector but omit their class and resource references by picking a random matching GCS BucketClass, if any.

Types

type Reconciler

type Reconciler struct {
	client.Client

	managed.ReferenceResolver
	// contains filtered or unexported fields
}

Reconciler reconciles a GCP storage bucket bucket

func (*Reconciler) Reconcile

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

Reconcile reads that state of the cluster for a Provider bucket and makes changes based on the state read and what is in the Provider.Spec

Jump to

Keyboard shortcuts

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