webhooks

package
v0.0.0-...-1f6a80c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInjector

type NetworkInjector struct {
	// Client is the client to the Kubernetes API server
	Client client.Reader
	// Settings are the settings for this component
	Settings NetworkInjectorSettings
}

NetworkInjector is a component that can inject Multus annotations and resources on Pods

func (*NetworkInjector) Default

func (webhook *NetworkInjector) Default(ctx context.Context, obj runtime.Object) error

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*NetworkInjector) SetupWebhookWithManager

func (webhook *NetworkInjector) SetupWebhookWithManager(mgr ctrl.Manager) error

type NetworkInjectorSettings

type NetworkInjectorSettings struct {
	// NADName is the name of the network attachment definition that the injector should use to configure VFs for the
	// default network
	NADName string
	// NADNamespace is the namespace of the network attachment definition that the injector should use to configure VFs
	// for the default network
	NADNamespace string
}

NetworkInjectorSettings are the settings for the Network Injector

Jump to

Keyboard shortcuts

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