Documentation ¶
Index ¶
- Constants
- func GetClaimDeletionProtection(security *vshnv1.Security, allErrs field.ErrorList) field.ErrorList
- func SetupKeycloakWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupMariaDBWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupMinioWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupMysqlDatabaseDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupMysqlGrantDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupMysqlUserDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupNamespaceDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupNextcloudWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupObjectDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupObjectbucketDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupObjectv1alpha1DeletionProtectionHandlerWithManager(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
- func SetupReleaseDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- func SetupXObjectbucketCDeletionProtectionHandlerWithManager(mgr ctrl.Manager) error
- type DefaultWebhookHandler
- func (r *DefaultWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DefaultWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *DefaultWebhookHandler) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type DeletionProtectionInfo
- type GenericDeletionProtectionHandler
- func (p *GenericDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (p *GenericDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *GenericDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
- type KeycloakWebhookHandler
- type MariaDBWebhookHandler
- type MinioWebhookHandler
- 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
- type RedisWebhookHandler
- type TestWebhookHandler
- type XObjectbucketDeletionProtectionHandler
- func (p *XObjectbucketDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (p *XObjectbucketDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *XObjectbucketDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
Constants ¶
const (
ProtectionOverrideLabel = "appcat.vshn.io/webhook-allowdeletion"
)
Variables ¶
This section is empty.
Functions ¶
func GetClaimDeletionProtection ¶ added in v4.86.0
func SetupKeycloakWebhookHandlerWithManager ¶ added in v4.86.0
SetupKeycloakWebhookHandlerWithManager registers the validation webhook with the manager.
func SetupMariaDBWebhookHandlerWithManager ¶ added in v4.86.0
SetupMariaDBWebhookHandlerWithManager registers the validation webhook with the manager.
func SetupMinioWebhookHandlerWithManager ¶ added in v4.86.0
SetupMinioWebhookHandlerWithManager registers the validation webhook with the manager.
func SetupMysqlDatabaseDeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupMysqlDatabaseDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupMysqlGrantDeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupMysqlGrantDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupMysqlUserDeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupMysqlUserDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupNamespaceDeletionProtectionHandlerWithManager ¶ added in v4.64.0
SetupNamespaceDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupNextcloudWebhookHandlerWithManager ¶ added in v4.86.0
SetupNextcloudWebhookHandlerWithManager registers the validation webhook with the manager.
func SetupObjectDeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupObjectDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupObjectbucketDeletionProtectionHandlerWithManager ¶ added in v4.87.3
SetupObjectbucketDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupObjectv1alpha1DeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupObjectv1alpha1DeletionProtectionHandlerWithManager 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.
func SetupRedisWebhookHandlerWithManager ¶
SetupRedisWebhookHandlerWithManager registers the validation webhook with the manager.
func SetupReleaseDeletionProtectionHandlerWithManager ¶ added in v4.101.0
SetupReleaseDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
func SetupXObjectbucketCDeletionProtectionHandlerWithManager ¶ added in v4.87.3
SetupXObjectbucketCDeletionProtectionHandlerWithManager registers the validation webhook with the manager.
Types ¶
type DefaultWebhookHandler ¶ added in v4.86.0
type DefaultWebhookHandler struct {
// contains filtered or unexported fields
}
func New ¶ added in v4.86.0
func New(mgrClient client.Client, logger logr.Logger, withQuota bool, obj runtime.Object, name string, gk schema.GroupKind, gr schema.GroupResource) *DefaultWebhookHandler
SetupWebhookHandlerWithManager registers the validation webhook with the manager.
func (*DefaultWebhookHandler) ValidateCreate ¶ added in v4.86.0
func (r *DefaultWebhookHandler) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*DefaultWebhookHandler) ValidateDelete ¶ added in v4.86.0
func (r *DefaultWebhookHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*DefaultWebhookHandler) ValidateUpdate ¶ added in v4.86.0
func (r *DefaultWebhookHandler) 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 DeletionProtectionInfo ¶ added in v4.64.0
type DeletionProtectionInfo interface {
IsDeletionProtected() bool
}
DeletionProtectionInfo provides information about the composite's deletion protection state.
type GenericDeletionProtectionHandler ¶ added in v4.101.0
type GenericDeletionProtectionHandler struct {
// contains filtered or unexported fields
}
func (*GenericDeletionProtectionHandler) ValidateCreate ¶ added in v4.101.0
func (p *GenericDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*GenericDeletionProtectionHandler) ValidateDelete ¶ added in v4.101.0
func (p *GenericDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*GenericDeletionProtectionHandler) ValidateUpdate ¶ added in v4.101.0
func (p *GenericDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type
type KeycloakWebhookHandler ¶ added in v4.86.0
type KeycloakWebhookHandler struct {
DefaultWebhookHandler
}
type MariaDBWebhookHandler ¶ added in v4.86.0
type MariaDBWebhookHandler struct {
DefaultWebhookHandler
}
func (*MariaDBWebhookHandler) ValidateUpdate ¶ added in v4.102.0
func (p *MariaDBWebhookHandler) 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 MinioWebhookHandler ¶ added in v4.86.0
type MinioWebhookHandler struct {
DefaultWebhookHandler
}
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 {
DefaultWebhookHandler
}
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) 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 {
DefaultWebhookHandler
}
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) 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
type TestWebhookHandler ¶ added in v4.86.0
type TestWebhookHandler struct {
DefaultWebhookHandler
}
type XObjectbucketDeletionProtectionHandler ¶ added in v4.87.3
type XObjectbucketDeletionProtectionHandler struct {
// contains filtered or unexported fields
}
XObjectbucketDeletionProtectionHandler
func (*XObjectbucketDeletionProtectionHandler) ValidateCreate ¶ added in v4.87.3
func (p *XObjectbucketDeletionProtectionHandler) ValidateCreate(_ context.Context, _ runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type
func (*XObjectbucketDeletionProtectionHandler) ValidateDelete ¶ added in v4.87.3
func (p *XObjectbucketDeletionProtectionHandler) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type
func (*XObjectbucketDeletionProtectionHandler) ValidateUpdate ¶ added in v4.87.3
func (p *XObjectbucketDeletionProtectionHandler) ValidateUpdate(_ context.Context, _, _ runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type