Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookNode ¶
func NewWebhookNode( ctx context.Context, webhookCtx *katalystbase.GenericContext, _ *generic.GenericConfiguration, _ *webhookconfig.GenericWebhookConfiguration, _ *webhookconfig.WebhooksConfiguration, ) (kubewebhook.Webhook, webhookconsts.GenericStartFunc, error)
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) 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 ¶
func (na *WebhookNodeAllocatableMutator) Name() string
type WebhookNodeMutator ¶
type WebhookNodeMutator interface { MutateNode(node *core.Node, admissionRequest *admissionv1beta1.AdmissionRequest) error Name() string }
Click to show internal directories.
Click to hide internal directories.