webhooks

package
v4.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPostgreSQLWebhookHandlerWithManager

func SetupPostgreSQLWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error

SetupPostgreSQLWebhookHandlerWithManager registers the validation webhook with the manager.

func SetupRedisWebhookHandlerWithManager

func SetupRedisWebhookHandlerWithManager(mgr ctrl.Manager, withQuota bool) error

SetupRedisWebhookHandlerWithManager 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

ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type

func (*PostgreSQLWebhookHandler) ValidateDelete

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

Jump to

Keyboard shortcuts

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