Documentation
¶
Index ¶
- Constants
- func SetupNBGroupWebhookWithManager(mgr ctrl.Manager) error
- func SetupPodWebhookWithManager(mgr ctrl.Manager, managementURL, clientImage string) error
- type NBGroupCustomValidator
- func (v *NBGroupCustomValidator) ValidateCreate(ctx context.Context, group *netbirdiov1.NBGroup) (admission.Warnings, error)
- func (v *NBGroupCustomValidator) ValidateDelete(ctx context.Context, nbgroup *netbirdiov1.NBGroup) (admission.Warnings, error)
- func (v *NBGroupCustomValidator) ValidateUpdate(ctx context.Context, old, new *netbirdiov1.NBGroup) (admission.Warnings, error)
- type PodNetbirdInjector
Constants ¶
View Source
const (
SidecarProfileAnnotation = "netbird.io/sidecar-profile"
)
Variables ¶
This section is empty.
Functions ¶
func SetupNBGroupWebhookWithManager ¶
SetupNBGroupWebhookWithManager registers the webhook for NBGroup 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 ¶
func (v *NBGroupCustomValidator) ValidateCreate(ctx context.Context, group *netbirdiov1.NBGroup) (admission.Warnings, error)
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.
Click to show internal directories.
Click to hide internal directories.