v1

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package v1 contains the webhooks for the postgresql v1 API group

Index

Constants

This section is empty.

Variables

View Source
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

func SetupBackupWebhookWithManager(mgr ctrl.Manager) error

SetupBackupWebhookWithManager registers the webhook for Backup in the manager.

func SetupClusterWebhookWithManager

func SetupClusterWebhookWithManager(mgr ctrl.Manager) error

SetupClusterWebhookWithManager registers the webhook for Cluster in the manager.

func SetupDatabaseWebhookWithManager added in v1.26.0

func SetupDatabaseWebhookWithManager(mgr ctrl.Manager) error

SetupDatabaseWebhookWithManager registers the webhook for Database in the manager.

func SetupPoolerWebhookWithManager

func SetupPoolerWebhookWithManager(mgr ctrl.Manager) error

SetupPoolerWebhookWithManager registers the webhook for Pooler in the manager.

func SetupScheduledBackupWebhookWithManager

func SetupScheduledBackupWebhookWithManager(mgr ctrl.Manager) error

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.

func (*BackupCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Backup.

type BackupCustomValidator

type BackupCustomValidator struct{}

BackupCustomValidator struct is responsible for validating the Backup resource when it is created, updated, or deleted.

func (*BackupCustomValidator) ValidateCreate

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

func (*BackupCustomValidator) ValidateDelete

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.

func (*ClusterCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Cluster.

type ClusterCustomValidator

type ClusterCustomValidator struct{}

ClusterCustomValidator struct is responsible for validating the Cluster resource when it is created, updated, or deleted.

func (*ClusterCustomValidator) ValidateCreate

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

func (*ClusterCustomValidator) ValidateDelete

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.

func (*DatabaseCustomDefaulter) Default added in v1.26.0

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Database.

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

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

func (*DatabaseCustomValidator) ValidateDelete added in v1.26.0

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

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

func (*PoolerCustomValidator) ValidateDelete

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.

func (*ScheduledBackupCustomDefaulter) Default

Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind ScheduledBackup.

type ScheduledBackupCustomValidator

type ScheduledBackupCustomValidator struct {
}

ScheduledBackupCustomValidator struct is responsible for validating the ScheduledBackup resource when it is created, updated, or deleted.

func (*ScheduledBackupCustomValidator) ValidateCreate

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

func (*ScheduledBackupCustomValidator) ValidateDelete

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.

Jump to

Keyboard shortcuts

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