Documentation
¶
Overview ¶
Package v1 contains the webhooks for the postgresql v1 API group
Index ¶
- Variables
- func SetupBackupWebhookWithManager(mgr ctrl.Manager) error
- func SetupClusterWebhookWithManager(mgr ctrl.Manager) error
- func SetupDatabaseWebhookWithManager(mgr ctrl.Manager) error
- func SetupPoolerWebhookWithManager(mgr ctrl.Manager) error
- func SetupScheduledBackupWebhookWithManager(mgr ctrl.Manager) error
- type BackupCustomDefaulter
- type BackupCustomValidator
- func (v *BackupCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BackupCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *BackupCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type ClusterCustomDefaulter
- type ClusterCustomValidator
- func (v *ClusterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ClusterCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type DatabaseCustomDefaulter
- type DatabaseCustomValidator
- func (v *DatabaseCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *DatabaseCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *DatabaseCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PoolerCustomValidator
- func (v *PoolerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PoolerCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PoolerCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type ScheduledBackupCustomDefaulter
- type ScheduledBackupCustomValidator
- func (v *ScheduledBackupCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ScheduledBackupCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ScheduledBackupCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
var AllowedPgbouncerGenericConfigurationParameters = stringset.From([]string{
"application_name_add_host",
"autodb_idle_timeout",
"cancel_wait_timeout",
"client_idle_timeout",
"client_login_timeout",
"default_pool_size",
"disable_pqexec",
"dns_max_ttl",
"dns_nxdomain_ttl",
"idle_transaction_timeout",
"ignore_startup_parameters",
"listen_backlog",
"log_connections",
"log_disconnections",
"log_pooler_errors",
"log_stats",
"max_client_conn",
"max_db_connections",
"max_packet_size",
"max_prepared_statements",
"max_user_connections",
"min_pool_size",
"pkt_buf",
"query_timeout",
"query_wait_timeout",
"reserve_pool_size",
"reserve_pool_timeout",
"sbuf_loopcnt",
"server_check_delay",
"server_check_query",
"server_connect_timeout",
"server_fast_close",
"server_idle_timeout",
"server_lifetime",
"server_login_retry",
"server_reset_query",
"server_reset_query_always",
"server_round_robin",
"server_tls_ciphers",
"server_tls_protocols",
"stats_period",
"suspend_timeout",
"tcp_defer_accept",
"tcp_socket_buffer",
"tcp_keepalive",
"tcp_keepcnt",
"tcp_keepidle",
"tcp_keepintvl",
"tcp_user_timeout",
"track_extra_parameters",
"verbose",
})
AllowedPgbouncerGenericConfigurationParameters is the list of allowed parameters for PgBouncer
Functions ¶
func SetupBackupWebhookWithManager ¶
SetupBackupWebhookWithManager registers the webhook for Backup in the manager.
func SetupClusterWebhookWithManager ¶
SetupClusterWebhookWithManager registers the webhook for Cluster in the manager.
func SetupDatabaseWebhookWithManager ¶ added in v1.26.0
SetupDatabaseWebhookWithManager registers the webhook for Database in the manager.
func SetupPoolerWebhookWithManager ¶
SetupPoolerWebhookWithManager registers the webhook for Pooler in the manager.
func SetupScheduledBackupWebhookWithManager ¶
SetupScheduledBackupWebhookWithManager registers the webhook for ScheduledBackup in the manager.
Types ¶
type BackupCustomDefaulter ¶
type BackupCustomDefaulter struct{}
BackupCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Backup when those are created or updated.
type BackupCustomValidator ¶
type BackupCustomValidator struct{}
BackupCustomValidator struct is responsible for validating the Backup resource when it is created, updated, or deleted.
func (*BackupCustomValidator) ValidateCreate ¶
func (v *BackupCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Backup.
func (*BackupCustomValidator) ValidateDelete ¶
func (v *BackupCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Backup.
func (*BackupCustomValidator) ValidateUpdate ¶
func (v *BackupCustomValidator) ValidateUpdate( _ context.Context, _, newObj runtime.Object, ) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Backup.
type ClusterCustomDefaulter ¶
type ClusterCustomDefaulter struct{}
ClusterCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Cluster when those are created or updated.
type ClusterCustomValidator ¶
type ClusterCustomValidator struct{}
ClusterCustomValidator struct is responsible for validating the Cluster resource when it is created, updated, or deleted.
func (*ClusterCustomValidator) ValidateCreate ¶
func (v *ClusterCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Cluster.
func (*ClusterCustomValidator) ValidateDelete ¶
func (v *ClusterCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Cluster.
func (*ClusterCustomValidator) ValidateUpdate ¶
func (v *ClusterCustomValidator) ValidateUpdate( _ context.Context, oldObj, newObj runtime.Object, ) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Cluster.
type DatabaseCustomDefaulter ¶ added in v1.26.0
type DatabaseCustomDefaulter struct{}
DatabaseCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Database when those are created or updated.
type DatabaseCustomValidator ¶ added in v1.26.0
type DatabaseCustomValidator struct{}
DatabaseCustomValidator is responsible for validating the Database resource when it is created, updated, or deleted.
func (*DatabaseCustomValidator) ValidateCreate ¶ added in v1.26.0
func (v *DatabaseCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Database .
func (*DatabaseCustomValidator) ValidateDelete ¶ added in v1.26.0
func (v *DatabaseCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Database .
func (*DatabaseCustomValidator) ValidateUpdate ¶ added in v1.26.0
func (v *DatabaseCustomValidator) ValidateUpdate( _ context.Context, oldObj, newObj runtime.Object, ) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Database .
type PoolerCustomValidator ¶
type PoolerCustomValidator struct{}
PoolerCustomValidator struct is responsible for validating the Pooler resource when it is created, updated, or deleted.
func (*PoolerCustomValidator) ValidateCreate ¶
func (v *PoolerCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Pooler.
func (*PoolerCustomValidator) ValidateDelete ¶
func (v *PoolerCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Pooler.
func (*PoolerCustomValidator) ValidateUpdate ¶
func (v *PoolerCustomValidator) ValidateUpdate( _ context.Context, oldObj, newObj runtime.Object, ) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Pooler.
type ScheduledBackupCustomDefaulter ¶
type ScheduledBackupCustomDefaulter struct{}
ScheduledBackupCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind ScheduledBackup when those are created or updated.
type ScheduledBackupCustomValidator ¶
type ScheduledBackupCustomValidator struct {
}
ScheduledBackupCustomValidator struct is responsible for validating the ScheduledBackup resource when it is created, updated, or deleted.
func (*ScheduledBackupCustomValidator) ValidateCreate ¶
func (v *ScheduledBackupCustomValidator) ValidateCreate( _ context.Context, obj runtime.Object, ) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ScheduledBackup.
func (*ScheduledBackupCustomValidator) ValidateDelete ¶
func (v *ScheduledBackupCustomValidator) ValidateDelete( _ context.Context, obj runtime.Object, ) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ScheduledBackup.
func (*ScheduledBackupCustomValidator) ValidateUpdate ¶
func (v *ScheduledBackupCustomValidator) ValidateUpdate( _ context.Context, _, newObj runtime.Object, ) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ScheduledBackup.