webhooks

package
v1.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package webhooks ...

Package webhooks ...

Package webhooks ...

Package webhooks ...

Package webhooks ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDataImportJobWebhookWithManager

func SetupDataImportJobWebhookWithManager(mgr manager.Manager) error

SetupDataImportJobWebhookWithManager sets up the webhook for DataImportJob.

func SetupDatabaseClusterWebhookWithManager

func SetupDatabaseClusterWebhookWithManager(mgr manager.Manager) error

SetupDatabaseClusterWebhookWithManager sets up the webhook with the manager.

func SetupLoadBalancerConfigWebhookWithManager added in v1.9.0

func SetupLoadBalancerConfigWebhookWithManager(mgr manager.Manager) error

SetupLoadBalancerConfigWebhookWithManager sets up the webhook with the manager.

func SetupMonitoringConfigWebhookWithManager added in v1.9.0

func SetupMonitoringConfigWebhookWithManager(mgr manager.Manager) error

SetupMonitoringConfigWebhookWithManager sets up the webhook with the manager.

Types

type DataImportJobDefaulter

type DataImportJobDefaulter struct {
	Client client.Client
}

DataImportJobDefaulter is a webhook that sets default values for DataImportJob resources.

func (*DataImportJobDefaulter) Default

Default implements a mutating webhook for DataImportJob resources.

type DatabaseClusterDefaulter

type DatabaseClusterDefaulter struct {
	// Client is the Kubernetes client used to interact with the cluster.
	Client client.Client
}

DatabaseClusterDefaulter is a webhook that sets default values for DatabaseCluster resources.

func (*DatabaseClusterDefaulter) Default

Default implements a mutating webhook for DatabaseCluster resources.

type DatabaseClusterValidator

type DatabaseClusterValidator struct {
	Client client.Client
}

DatabaseClusterValidator validates the DatabaseCluster resource.

func (*DatabaseClusterValidator) ValidateCreate

ValidateCreate validates the creation of a DatabaseCluster.

func (*DatabaseClusterValidator) ValidateDelete

ValidateDelete validates the deletion of a DatabaseCluster.

func (*DatabaseClusterValidator) ValidateLoadBalancerConfig added in v1.9.0

func (v *DatabaseClusterValidator) ValidateLoadBalancerConfig(ctx context.Context, lbcName string) error

ValidateLoadBalancerConfig validates if the LoadBalancerConfig with the given name exists.

func (*DatabaseClusterValidator) ValidateUpdate

ValidateUpdate validates the update of a DatabaseCluster.

type LoadBalancerConfigValidator added in v1.9.0

type LoadBalancerConfigValidator struct {
	Client client.Client
}

LoadBalancerConfigValidator validates the LoadBalancerConfig resource.

func (*LoadBalancerConfigValidator) ValidateCreate added in v1.9.0

ValidateCreate validates the creation of a DatabaseCluster.

func (*LoadBalancerConfigValidator) ValidateDelete added in v1.9.0

ValidateDelete validates the deletion of a DatabaseCluster.

func (*LoadBalancerConfigValidator) ValidateUpdate added in v1.9.0

func (v *LoadBalancerConfigValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates the update of a DatabaseCluster.

type MonitoringConfigValidator added in v1.9.0

type MonitoringConfigValidator struct {
	Client client.Client
	// contains filtered or unexported fields
}

MonitoringConfigValidator validates the MonitoringConfig resource.

func (*MonitoringConfigValidator) ValidateCreate added in v1.9.0

ValidateCreate validates the creation of a DatabaseCluster.

func (*MonitoringConfigValidator) ValidateDelete added in v1.9.0

ValidateDelete validates the deletion of a DatabaseCluster.

func (*MonitoringConfigValidator) ValidateUpdate added in v1.9.0

func (v *MonitoringConfigValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates the update of a DatabaseCluster.

Jump to

Keyboard shortcuts

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