Documentation ¶
Index ¶
- type HPAWebhook
- func (h *HPAWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (*HPAWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (h *HPAWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)
- func (*HPAWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.