v1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupNBGroupWebhookWithManager

func SetupNBGroupWebhookWithManager(mgr ctrl.Manager) error

SetupNBGroupWebhookWithManager registers the webhook for NBGroup in the manager.

func SetupNBSetupKeyWebhookWithManager

func SetupNBSetupKeyWebhookWithManager(mgr ctrl.Manager) error

SetupNBSetupKeyWebhookWithManager registers the webhook for NBSetupKey in the manager.

func SetupPodWebhookWithManager

func SetupPodWebhookWithManager(mgr ctrl.Manager, managementURL, clientImage string) error

SetupPodWebhookWithManager registers the webhook for Pod in the manager.

Types

type NBGroupCustomValidator

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

NBGroupCustomValidator struct is responsible for validating the NBGroup resource when it is created, updated, or deleted.

func (*NBGroupCustomValidator) ValidateCreate

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

func (*NBGroupCustomValidator) ValidateDelete

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

func (*NBGroupCustomValidator) ValidateUpdate

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

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

type NBSetupKeyCustomValidator

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

NBSetupKeyCustomValidator struct is responsible for validating the NBSetupKey resource when it is created, updated, or deleted.

func (*NBSetupKeyCustomValidator) ValidateCreate

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

func (*NBSetupKeyCustomValidator) ValidateDelete

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

func (*NBSetupKeyCustomValidator) ValidateUpdate

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

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

type PodNetbirdInjector

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

PodNetbirdInjector struct is responsible for setting default values on the custom resource of the Kind Pod when those are created or updated.

func (*PodNetbirdInjector) Default

func (d *PodNetbirdInjector) Default(ctx context.Context, obj runtime.Object) error

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

Jump to

Keyboard shortcuts

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