webhook

package
v0.4.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: 13 Imported by: 0

Documentation

Overview

Package webhook contains webhooks for the custom resources.

Package webhook contains webhooks for the custom resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxmoxCluster

type ProxmoxCluster struct{}

ProxmoxCluster is a type that implements the interfaces from the admission package.

func (*ProxmoxCluster) SetupWebhookWithManager

func (p *ProxmoxCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the webhook with the custom interfaces.

func (*ProxmoxCluster) ValidateCreate

func (*ProxmoxCluster) ValidateCreate(_ context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateCreate implements the creation validation function.

func (*ProxmoxCluster) ValidateDelete

ValidateDelete implements the deletion validation function.

func (*ProxmoxCluster) ValidateUpdate

func (*ProxmoxCluster) ValidateUpdate(_ context.Context, _ runtime.Object, newObj runtime.Object) (warnings admission.Warnings, err error)

ValidateUpdate implements the update validation function.

type ProxmoxMachine added in v0.2.0

type ProxmoxMachine struct{}

ProxmoxMachine is a type that implements the interfaces from the admission package.

func (*ProxmoxMachine) SetupWebhookWithManager added in v0.2.0

func (p *ProxmoxMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the webhook with the custom interfaces.

func (*ProxmoxMachine) ValidateCreate added in v0.2.0

func (p *ProxmoxMachine) ValidateCreate(_ context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

ValidateCreate implements the creation validation function.

func (*ProxmoxMachine) ValidateDelete added in v0.2.0

func (p *ProxmoxMachine) ValidateDelete(_ context.Context, _ runtime.Object) (warnings admission.Warnings, err error)

ValidateDelete implements the deletion validation function.

func (*ProxmoxMachine) ValidateUpdate added in v0.2.0

func (p *ProxmoxMachine) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (warnings admission.Warnings, err error)

ValidateUpdate implements the update validation function.

Jump to

Keyboard shortcuts

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