webhooks

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceWebhook

type ServiceWebhook struct {
	Client            client.Reader
	LoadBalancerClass string
}

func (*ServiceWebhook) Default

func (w *ServiceWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*ServiceWebhook) SetupWithManager

func (w *ServiceWebhook) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the webhook with the Manager.

func (*ServiceWebhook) ValidateCreate

func (w *ServiceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ServiceWebhook) ValidateDelete

func (w *ServiceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ServiceWebhook) ValidateUpdate

func (w *ServiceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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