Documentation ¶
Index ¶
- func SetupPostgreSQLWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error
- func SetupRedisWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupPostgreSQLWebhookHandlerWithManager ¶
SetupPostgreSQLWebhookHandlerWithManager registers the validation webhook with the manager.
Types ¶
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