kafkacontroller

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: BSD-3-Clause Imports: 25 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) (admission.Warnings, error)

ValidateCreate validates the spec of a created kafka resource.

func (*Validator) ValidateDelete

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

ValidateDelete validates a delete. Currently does not validate anything.

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, 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