hardware

package
v0.0.0-...-9bdbb14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admission

type Admission struct {
	// contains filtered or unexported fields
}

Admission handles complex validation for admitting a Hardware object to the cluster.

func (*Admission) Handle

Handle satisfies controller-runtime/pkg/webhook/admission#Handler. It is responsible for deciding if the given req is valid and should be admitted to the cluster.

func (*Admission) InjectDecoder

func (a *Admission) InjectDecoder(d *admission.Decoder) error

InjectDecoder satisfies controller-runtime/pkg/webhook/admission#DecoderInjector. It is used when registering the webhook to inject the decoder used by the controller manager.

func (*Admission) SetClient

func (a *Admission) SetClient(c ctrlclient.Client)

SetClient sets a's internal Kubernetes client.

func (*Admission) SetupWithManager

func (a *Admission) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager registers a with mgr as a webhook served from AdmissionWebhookEndpoint.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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