node

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type WebhookNode

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

WebhookNode is the implementation of Kubernetes Webhook any implementation should at least implement the interface of mutating.Mutator of validating.Validator

func (*WebhookNode) Mutate

func (wn *WebhookNode) Mutate(ctx context.Context, obj metav1.Object) (bool, error)

func (*WebhookNode) Run

func (wn *WebhookNode) Run() bool

type WebhookNodeAllocatableMutator

type WebhookNodeAllocatableMutator struct{}

WebhookNodeAllocatableMutator mutate node allocatable according to overcommit annotation

func NewWebhookNodeAllocatableMutator

func NewWebhookNodeAllocatableMutator() *WebhookNodeAllocatableMutator

func (*WebhookNodeAllocatableMutator) MutateNode

func (na *WebhookNodeAllocatableMutator) MutateNode(node *core.Node, admissionRequest *admissionv1beta1.AdmissionRequest) error

func (*WebhookNodeAllocatableMutator) Name

type WebhookNodeMutator

type WebhookNodeMutator interface {
	MutateNode(node *core.Node, admissionRequest *admissionv1beta1.AdmissionRequest) error
	Name() string
}

Jump to

Keyboard shortcuts

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