kafkacontroller

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupController

func SetupController(mgr ctrl.Manager) error

SetupController adds a controller that reconciles kafka resources.

func SetupWebhook

func SetupWebhook(mgr ctrl.Manager) error

SetupWebhook adds a webhook for kafka resources.

Types

type Validator

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

Validator validates kafka admission requests.

func (*Validator) ValidateCreate

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

ValidateCreate validates the spec of a created kafka resource.

func (*Validator) ValidateDelete

func (v *Validator) ValidateDelete(_ context.Context, obj runtime.Object) error

ValidateDelete validates a delete. Currently does not validate anything.

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate validates the spec of an updated kafka resource and checks that no immutable field has been modified.

Jump to

Keyboard shortcuts

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