webhooks

package
v0.0.0-...-814654e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateValidatePath

func GenerateValidatePath(gvk schema.GroupVersionKind) string

GenerateValidatePath returns the path for this validating webhook

Types

type ScalewayWebhook

type ScalewayWebhook struct {
	ScalewayManager scaleway.Manager
}

ScalewayWebhook is the base webhook for Scaleway products

func (*ScalewayWebhook) ValidateCreate

func (r *ScalewayWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (field.ErrorList, error)

ValidateCreate calls the ValidateCreate method of the given resource

func (*ScalewayWebhook) ValidateUpdate

func (r *ScalewayWebhook) ValidateUpdate(ctx context.Context, oldObj runtime.Object, obj runtime.Object) (field.ErrorList, error)

ValidateUpdate calls the ValidateUpdate method of the given resource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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