webhooks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package webhooks contains Kubernetes defaulting and validating admission webhook.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerSetWebhook

type RunnerSetWebhook struct {
	Client client.Reader
}

func (*RunnerSetWebhook) Default

func (w *RunnerSetWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (*RunnerSetWebhook) SetupWithManager

func (w *RunnerSetWebhook) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

func (*RunnerSetWebhook) ValidateCreate

func (w *RunnerSetWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*RunnerSetWebhook) ValidateDelete

func (w *RunnerSetWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

func (*RunnerSetWebhook) ValidateUpdate

func (w *RunnerSetWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

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

type RunnerWebhook

type RunnerWebhook struct {
	Client client.Reader
}

func (*RunnerWebhook) Default

func (w *RunnerWebhook) Default(ctx context.Context, obj runtime.Object) error

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

func (*RunnerWebhook) SetupWithManager

func (w *RunnerWebhook) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

func (*RunnerWebhook) ValidateCreate

func (w *RunnerWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*RunnerWebhook) ValidateDelete

func (w *RunnerWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

func (*RunnerWebhook) ValidateUpdate

func (w *RunnerWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

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

Jump to

Keyboard shortcuts

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