Documentation ¶
Index ¶
- Constants
- func SetupNamespaceDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupObjectbucketCDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupPVCDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupPostgreSQLWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupRedisWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- type DeletionProtectionInfo
- type NamespaceDeletionProtectionHandler
- func (p *NamespaceDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (p *NamespaceDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *NamespaceDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
- type ObjectbucketDeletionProtectionHandler
- func (p *ObjectbucketDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (p *ObjectbucketDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *ObjectbucketDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
- type PVCDeletionProtectionHandler
- func (p *PVCDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (p *PVCDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *PVCDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
- type PostgreSQLWebhookHandler
- func (p *PostgreSQLWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *PostgreSQLWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *PostgreSQLWebhookHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type RedisWebhookHandler
- func (r *RedisWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *RedisWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *RedisWebhookHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
const (
ProtectionOverrideLabel = "appcat.vshn.io/webhook-allowdeletion"
)
Variables ¶
This section is empty.
Functions ¶
func SetupNamespaceDeletionProtectionHandlerWithManager ¶ added in v4.64.0
SetupNamespaceDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupObjectbucketCDeletionProtectionHandlerWithManager ¶ added in v4.64.0
SetupObjectbucketCDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupPVCDeletionProtectionHandlerWithManager ¶ added in v4.64.0
SetupPVCDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupPostgreSQLWebhookHandlerWithManager ¶
SetupPostgreSQLWebhookHandlerWithManager registers the validation webhook with the manager.
Types ¶
type DeletionProtectionInfo ¶ added in v4.64.0
type DeletionProtectionInfo interface {
IsDeletionProtected() bool
}
DeletionProtectionInfo provides information about the composite's deletion protection state.
type NamespaceDeletionProtectionHandler ¶ added in v4.64.0
type NamespaceDeletionProtectionHandler struct {
// contains filtered or unexported fields
}
NamespaceDeletionProtectionHandler
func (*NamespaceDeletionProtectionHandler) ValidateCreate ¶ added in v4.64.0
func (p *NamespaceDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*NamespaceDeletionProtectionHandler) ValidateDelete ¶ added in v4.64.0
func (p *NamespaceDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*NamespaceDeletionProtectionHandler) ValidateUpdate ¶ added in v4.64.0
func (p *NamespaceDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type ObjectbucketDeletionProtectionHandler ¶ added in v4.64.0
type ObjectbucketDeletionProtectionHandler struct {
// contains filtered or unexported fields
}
ObjectbucketDeletionProtectionHandler
func (*ObjectbucketDeletionProtectionHandler) ValidateCreate ¶ added in v4.64.0
func (p *ObjectbucketDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*ObjectbucketDeletionProtectionHandler) ValidateDelete ¶ added in v4.64.0
func (p *ObjectbucketDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*ObjectbucketDeletionProtectionHandler) ValidateUpdate ¶ added in v4.64.0
func (p *ObjectbucketDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type PVCDeletionProtectionHandler ¶ added in v4.64.0
type PVCDeletionProtectionHandler struct {
// contains filtered or unexported fields
}
PVCDeletionProtectionHandler
func (*PVCDeletionProtectionHandler) ValidateCreate ¶ added in v4.64.0
func (p *PVCDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*PVCDeletionProtectionHandler) ValidateDelete ¶ added in v4.64.0
func (p *PVCDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*PVCDeletionProtectionHandler) ValidateUpdate ¶ added in v4.64.0
func (p *PVCDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type PostgreSQLWebhookHandler ¶
type PostgreSQLWebhookHandler struct {
// contains filtered or unexported fields
}
PostgreSQLWebhookHandler handles all quota webhooks concerning postgresql by vshn.
func (*PostgreSQLWebhookHandler) ValidateCreate ¶
func (p *PostgreSQLWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*PostgreSQLWebhookHandler) ValidateDelete ¶
func (p *PostgreSQLWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*PostgreSQLWebhookHandler) ValidateUpdate ¶
func (p *PostgreSQLWebhookHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type RedisWebhookHandler ¶
type RedisWebhookHandler struct {
// contains filtered or unexported fields
}
RedisWebhookHandler handles all quota webhooks concerning redis by vshn.
func (*RedisWebhookHandler) ValidateCreate ¶
func (r *RedisWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*RedisWebhookHandler) ValidateDelete ¶
func (r *RedisWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*RedisWebhookHandler) ValidateUpdate ¶
func (r *RedisWebhookHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type