Documentation
¶
Index ¶
- func SetupNBGroupWebhookWithManager(mgr ctrl.Manager) error
- func SetupNBResourceWebhookWithManager(mgr ctrl.Manager) error
- func SetupNBRoutingPeerWebhookWithManager(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 NBResourceCustomValidator
- func (v *NBResourceCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBResourceCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBResourceCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type NBRoutingPeerCustomValidator
- func (v *NBRoutingPeerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBRoutingPeerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *NBRoutingPeerCustomValidator) 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 SetupNBResourceWebhookWithManager ¶
SetupNBResourceWebhookWithManager registers the webhook for NBResource in the manager.
func SetupNBRoutingPeerWebhookWithManager ¶
SetupNBRoutingPeerWebhookWithManager registers the webhook for NBRoutingPeer 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 NBResourceCustomValidator ¶
type NBResourceCustomValidator struct {
// contains filtered or unexported fields
}
NBResourceCustomValidator struct is responsible for validating the NBResource resource when it is created, updated, or deleted.
func (*NBResourceCustomValidator) ValidateCreate ¶
func (v *NBResourceCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type NBResource.
func (*NBResourceCustomValidator) ValidateDelete ¶
func (v *NBResourceCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type NBResource.
func (*NBResourceCustomValidator) ValidateUpdate ¶
func (v *NBResourceCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type NBResource.
type NBRoutingPeerCustomValidator ¶
type NBRoutingPeerCustomValidator struct {
// contains filtered or unexported fields
}
NBRoutingPeerCustomValidator struct is responsible for validating the NBRoutingPeer resource when it is created, updated, or deleted.
func (*NBRoutingPeerCustomValidator) ValidateCreate ¶
func (v *NBRoutingPeerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type NBRoutingPeer.
func (*NBRoutingPeerCustomValidator) ValidateDelete ¶
func (v *NBRoutingPeerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type NBRoutingPeer.
func (*NBRoutingPeerCustomValidator) ValidateUpdate ¶
func (v *NBRoutingPeerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type NBRoutingPeer.
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.