polardbxcluster

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolarDBXClusterV1Defaulter

func NewPolarDBXClusterV1Defaulter(configLoader func() *DefaulterConfig) extension.CustomDefaulter

func NewPolarDBXClusterV1Validator

func NewPolarDBXClusterV1Validator(configLoader func() *ValidatorConfig) extension.CustomValidator

func SetupWebhooks

func SetupWebhooks(ctx context.Context, mgr ctrl.Manager, configPath string, apiPath string) error

func StartStandaloneWebhookServer

func StartStandaloneWebhookServer(ctx context.Context, mgr ctrl.Manager, port int, configPath string, certsPath string) error

Types

type DefaulterConfig

type DefaulterConfig struct {
	ProtocolVersion string `json:"protocol_version,omitempty"`
	StorageEngine   string `json:"storage_engine,omitempty"`
	ServiceType     string `json:"service_type,omitempty"`
	UpgradeStrategy string `json:"upgrade_strategy,omitempty"`
}

type PolarDBXClusterV1Defaulter

type PolarDBXClusterV1Defaulter struct {
	// contains filtered or unexported fields
}

func (*PolarDBXClusterV1Defaulter) Default

type PolarDBXClusterV1Validator

type PolarDBXClusterV1Validator struct {
	// contains filtered or unexported fields
}

func (*PolarDBXClusterV1Validator) ValidateCreate

func (v *PolarDBXClusterV1Validator) ValidateCreate(ctx context.Context, obj runtime.Object) error

func (*PolarDBXClusterV1Validator) ValidateDelete

func (v *PolarDBXClusterV1Validator) ValidateDelete(ctx context.Context, obj runtime.Object) error

func (*PolarDBXClusterV1Validator) ValidateUpdate

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

type ValidatorConfig

type ValidatorConfig struct {
}

type WebhookAdmissionConfig

type WebhookAdmissionConfig struct {
	Defaulter DefaulterConfig `json:"default,omitempty"`
	Validator ValidatorConfig `json:"validator,omitempty"`
}

type WebhookAdmissionConfigLoaderFunc

type WebhookAdmissionConfigLoaderFunc func() *WebhookAdmissionConfig

func NewConfigLoaderAndStartBackgroundRefresh

func NewConfigLoaderAndStartBackgroundRefresh(ctx context.Context, path string, logger logr.Logger) (WebhookAdmissionConfigLoaderFunc, error)

Jump to

Keyboard shortcuts

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