v1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SidecarProfileAnnotation = "netbird.io/sidecar-profile"
)

Variables

This section is empty.

Functions

func SetupNBGroupWebhookWithManager

func SetupNBGroupWebhookWithManager(mgr ctrl.Manager) error

SetupNBGroupWebhookWithManager registers the webhook for NBGroup 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

func (v *NBGroupCustomValidator) ValidateDelete(ctx context.Context, nbgroup *netbirdiov1.NBGroup) (admission.Warnings, error)

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

func (*NBGroupCustomValidator) ValidateUpdate

func (v *NBGroupCustomValidator) ValidateUpdate(ctx context.Context, old, new *netbirdiov1.NBGroup) (admission.Warnings, error)

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

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, pod *corev1.Pod) error

Jump to

Keyboard shortcuts

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