Documentation ¶
Index ¶
- func SetExclusiveAffinities(pod *corev1.Pod, groupUniqueKey string)
- func SetupLeaderWorkerSetWebhook(mgr ctrl.Manager) error
- func SetupPodWebhook(mgr ctrl.Manager) error
- type LeaderWorkerSetWebhook
- func (r *LeaderWorkerSetWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (r *LeaderWorkerSetWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *LeaderWorkerSetWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (r *LeaderWorkerSetWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PodWebhook
- func (p *PodWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (p *PodWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *PodWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (p *PodWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetExclusiveAffinities ¶
SetExclusiveAffinities set the node affinity/anti-affinity for the leader pod
func SetupLeaderWorkerSetWebhook ¶
SetupLeaderWorkerSetWebhook will setup the manager to manage the webhooks
func SetupPodWebhook ¶
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 ¶
func (r *LeaderWorkerSetWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*LeaderWorkerSetWebhook) ValidateDelete ¶
func (r *LeaderWorkerSetWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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) ValidateCreate ¶
func (*PodWebhook) ValidateDelete ¶
func (*PodWebhook) ValidateUpdate ¶
Click to show internal directories.
Click to hide internal directories.