Documentation ¶
Index ¶
- func SetupController(mgr ctrl.Manager) error
- func SetupWebhook(mgr ctrl.Manager) error
- type Validator
- func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupController ¶
SetupController adds a controller that reconciles kafka resources.
func SetupWebhook ¶
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 ¶
ValidateDelete validates a delete. Currently does not validate anything.
Click to show internal directories.
Click to hide internal directories.