webhooks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package webhooks provides validating admission webhooks for Nstance CRDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NstanceMachinePoolValidator

type NstanceMachinePoolValidator struct{}

NstanceMachinePoolValidator validates NstanceMachinePool resources. It prevents modification of template and subnet pool when the group is backed by static server config.

func (*NstanceMachinePoolValidator) SetupWithManager

func (v *NstanceMachinePoolValidator) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the webhook with the manager.

func (*NstanceMachinePoolValidator) ValidateCreate

ValidateCreate implements webhook.CustomValidator.

func (*NstanceMachinePoolValidator) ValidateDelete

ValidateDelete implements webhook.CustomValidator.

func (*NstanceMachinePoolValidator) ValidateUpdate

func (v *NstanceMachinePoolValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.CustomValidator. Rejects changes to spec.template or spec.subnetPool when status.IsStatic is true.

Jump to

Keyboard shortcuts

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