webhooks

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetExclusiveAffinities

func SetExclusiveAffinities(pod *corev1.Pod, groupUniqueKey string)

SetExclusiveAffinities set the node affinity/anti-affinity for the leader pod

func SetupLeaderWorkerSetWebhook

func SetupLeaderWorkerSetWebhook(mgr ctrl.Manager) error

SetupLeaderWorkerSetWebhook will setup the manager to manage the webhooks

func SetupPodWebhook

func SetupPodWebhook(mgr ctrl.Manager) error

Types

type LeaderWorkerSetWebhook

type LeaderWorkerSetWebhook struct{}

func (*LeaderWorkerSetWebhook) Default

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

func (*LeaderWorkerSetWebhook) ValidateCreate

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*LeaderWorkerSetWebhook) ValidateDelete

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*LeaderWorkerSetWebhook) ValidateUpdate

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

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PodWebhook

type PodWebhook struct{}

func (*PodWebhook) Default

func (p *PodWebhook) Default(ctx context.Context, obj runtime.Object) error

func (*PodWebhook) ValidateCreate

func (p *PodWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*PodWebhook) ValidateDelete

func (p *PodWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*PodWebhook) ValidateUpdate

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

Jump to

Keyboard shortcuts

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