Documentation
¶
Index ¶
- func SetupNBGroupWebhookWithManager(mgr ctrl.Manager) error
- func SetupNBSetupKeyWebhookWithManager(mgr ctrl.Manager) error
- func SetupPodWebhookWithManager(mgr ctrl.Manager, managementURL, clientImage string) error
- type NBGroupCustomValidator
- func (v *NBGroupCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBGroupCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBGroupCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type NBSetupKeyCustomValidator
- func (v *NBSetupKeyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBSetupKeyCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBSetupKeyCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PodNetbirdInjector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupNBGroupWebhookWithManager ¶
SetupNBGroupWebhookWithManager registers the webhook for NBGroup in the manager.
func SetupNBSetupKeyWebhookWithManager ¶
SetupNBSetupKeyWebhookWithManager registers the webhook for NBSetupKey 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, obj runtime.Object) (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, obj runtime.Object) (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, 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 ¶
func (v *NBSetupKeyCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type NBSetupKey.
func (*NBSetupKeyCustomValidator) ValidateDelete ¶
func (v *NBSetupKeyCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
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.