Documentation ¶
Index ¶
- func SetupController(mgr ctrl.Manager) error
- func SetupWebhook(mgr ctrl.Manager) error
- type BucketValidator
- type NoopClient
- func (n *NoopClient) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
- func (n *NoopClient) Delete(ctx context.Context, mg resource.Managed) error
- func (n *NoopClient) Observe(ctx context.Context, mg resource.Managed) (managed.ExternalObservation, error)
- func (n *NoopClient) Update(ctx context.Context, mg resource.Managed) (managed.ExternalUpdate, error)
- type ProvisioningPipeline
- func (p *ProvisioningPipeline) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
- func (p *ProvisioningPipeline) Delete(ctx context.Context, mg resource.Managed) error
- func (p *ProvisioningPipeline) Observe(ctx context.Context, mg resource.Managed) (managed.ExternalObservation, error)
- func (p *ProvisioningPipeline) Update(ctx context.Context, mg resource.Managed) (managed.ExternalUpdate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupController ¶
SetupController adds a controller that reconciles exoscalev1.Bucket managed resources.
func SetupWebhook ¶
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 ¶
ValidateCreate implements admission.CustomValidator.
func (*BucketValidator) ValidateDelete ¶
ValidateDelete implements admission.CustomValidator.
func (*BucketValidator) ValidateUpdate ¶
ValidateUpdate implements admission.CustomValidator.
type NoopClient ¶
type NoopClient struct{}
NoopClient is a client that does nothing.
func (*NoopClient) Create ¶
func (n *NoopClient) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
Create implement managed.ExternalClient. It returns nil.
func (*NoopClient) Observe ¶
func (n *NoopClient) Observe(ctx context.Context, mg resource.Managed) (managed.ExternalObservation, error)
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 ¶
func (n *NoopClient) Update(ctx context.Context, mg resource.Managed) (managed.ExternalUpdate, error)
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, minioClient *minio.Client) *ProvisioningPipeline
NewProvisioningPipeline returns a new instance of ProvisioningPipeline.
func (*ProvisioningPipeline) Create ¶
func (p *ProvisioningPipeline) Create(ctx context.Context, mg resource.Managed) (managed.ExternalCreation, error)
Create implements managed.ExternalClient.
func (*ProvisioningPipeline) Observe ¶
func (p *ProvisioningPipeline) Observe(ctx context.Context, mg resource.Managed) (managed.ExternalObservation, error)
Observe implements managed.ExternalClient.
func (*ProvisioningPipeline) Update ¶
func (p *ProvisioningPipeline) Update(ctx context.Context, mg resource.Managed) (managed.ExternalUpdate, error)
Update implements managed.ExternalClient.