webhooks

package
v0.24.1-dev.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicManagedByAnnotationKey            = "managedBy"
	TopicManagedByKoperatorAnnotationValue = "koperator"
)

Variables

This section is empty.

Functions

func IsAdmissionCantConnect

func IsAdmissionCantConnect(err error) bool

func IsAdmissionCantConnectAPIServer added in v0.23.0

func IsAdmissionCantConnectAPIServer(err error) bool

func IsAdmissionErrorDuringValidation added in v0.23.0

func IsAdmissionErrorDuringValidation(err error) bool

func IsAdmissionInvalidExternalListenerPort added in v0.24.0

func IsAdmissionInvalidExternalListenerPort(err error) bool

func IsAdmissionInvalidRemovingStorage added in v0.23.0

func IsAdmissionInvalidRemovingStorage(err error) bool

func IsAdmissionInvalidReplicationFactor added in v0.23.0

func IsAdmissionInvalidReplicationFactor(err error) bool

func IsAdmissionOutOfRangePartitions added in v0.23.0

func IsAdmissionOutOfRangePartitions(err error) bool

func IsAdmissionOutOfRangeReplicationFactor added in v0.23.0

func IsAdmissionOutOfRangeReplicationFactor(err error) bool

Types

type KafkaClusterValidator

type KafkaClusterValidator struct {
	Log logr.Logger
}

func (KafkaClusterValidator) ValidateCreate

func (s KafkaClusterValidator) ValidateCreate(ctx context.Context, obj runtime.Object) error

func (KafkaClusterValidator) ValidateDelete

func (s KafkaClusterValidator) ValidateDelete(ctx context.Context, obj runtime.Object) error

func (KafkaClusterValidator) ValidateUpdate

func (s KafkaClusterValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

type KafkaTopicValidator

type KafkaTopicValidator struct {
	Client              client.Client
	NewKafkaFromCluster func(client.Client, *banzaicloudv1beta1.KafkaCluster) (kafkaclient.KafkaClient, func(), error)
	Log                 logr.Logger
}

func (KafkaTopicValidator) ValidateCreate

func (s KafkaTopicValidator) ValidateCreate(ctx context.Context, obj runtime.Object) error

func (KafkaTopicValidator) ValidateDelete

func (s KafkaTopicValidator) ValidateDelete(ctx context.Context, obj runtime.Object) error

func (KafkaTopicValidator) ValidateUpdate

func (s KafkaTopicValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

Jump to

Keyboard shortcuts

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