autoscalingv2

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HPAWebhook

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

func New added in v0.0.8

func New(tortoiseService *tortoise.Service, hpaService *hpa.Service) *HPAWebhook

func (*HPAWebhook) Default

func (h *HPAWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (*HPAWebhook) ValidateCreate added in v0.2.0

func (*HPAWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateCreate validates the object on creation. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.

func (*HPAWebhook) ValidateDelete added in v0.2.0

func (h *HPAWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateDelete validates the object on deletion. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.

func (*HPAWebhook) ValidateUpdate added in v0.2.0

func (*HPAWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)

ValidateUpdate validates the object on update. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.

Jump to

Keyboard shortcuts

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