bucketcontroller

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupController

func SetupController(mgr ctrl.Manager) error

SetupController adds a controller that reconciles cloudscalev1.Bucket managed resources.

func SetupWebhook

func SetupWebhook(mgr ctrl.Manager) error

SetupWebhook adds a webhook for Bucket managed resources.

Types

type BucketValidator

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

BucketValidator validates admission requests.

func (*BucketValidator) ValidateCreate

func (v *BucketValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateCreate implements admission.CustomValidator.

func (*BucketValidator) ValidateDelete

func (v *BucketValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)

ValidateDelete implements admission.CustomValidator.

func (*BucketValidator) ValidateUpdate

func (v *BucketValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements admission.CustomValidator.

type NoopClient

type NoopClient struct{}

NoopClient is a client that does nothing.

func (*NoopClient) Create

Create implement managed.ExternalClient. It returns nil.

func (*NoopClient) Delete

func (n *NoopClient) Delete(ctx context.Context, mg resource.Managed) error

Delete implement managed.ExternalClient. It returns nil.

func (*NoopClient) Observe

Observe implements managed.ExternalClient. It always returns an observation where the resource doesn't exist and is outdated, together with a nil error.

func (*NoopClient) Update

Update implement managed.ExternalClient. It returns nil.

type ProvisioningPipeline

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

ProvisioningPipeline provisions Buckets using S3 client.

func NewProvisioningPipeline

func NewProvisioningPipeline(kube client.Client, recorder event.Recorder, minio *minio.Client) *ProvisioningPipeline

NewProvisioningPipeline returns a new instance of ProvisioningPipeline.

func (*ProvisioningPipeline) Create

Create implements managed.ExternalClient.

func (*ProvisioningPipeline) Delete

Delete implements managed.ExternalClient.

func (*ProvisioningPipeline) Observe

Observe implements managed.ExternalClient.

func (*ProvisioningPipeline) Update

Update implements managed.ExternalClient.

Jump to

Keyboard shortcuts

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