config

package
v0.0.0-...-aa34488 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddToScheme = localSchemeBuilder.AddToScheme
	Scheme      = runtime.NewScheme()
)

Functions

This section is empty.

Types

type AgentOptions

type AgentOptions struct {
	DryRun         bool
	KubeconfigPath string
	IPPoolRef      types.NamespacedName
}

type ControllerOptions

type ControllerOptions struct {
	NoAgent                 bool
	AgentNamespace          string
	AgentImage              *Image
	AgentServiceAccountName string
	NoDHCP                  bool
}

type Image

type Image struct {
	Repository string
	Tag        string
}

func NewImage

func NewImage(repo, tag string) *Image

func (*Image) String

func (i *Image) String() string

type Management

type Management struct {
	ControllerFactory controller.SharedControllerFactory

	HarvesterNetworkFactory *ctlnetwork.Factory

	CniFactory      *ctlcni.Factory
	CoreFactory     *ctlcore.Factory
	KubeVirtFactory *ctlkubevirt.Factory

	ClientSet *kubernetes.Clientset

	IPAllocator *ipam.IPAllocator

	Options *ControllerOptions
	// contains filtered or unexported fields
}

func SetupManagement

func SetupManagement(ctx context.Context, restConfig *rest.Config, options *ControllerOptions) (*Management, error)

func (*Management) NewRecorder

func (s *Management) NewRecorder(componentName, namespace, nodeName string) record.EventRecorder

func (*Management) Register

func (s *Management) Register(ctx context.Context, config *rest.Config, createCRD bool, registerFuncList []RegisterFunc) error

func (*Management) Start

func (s *Management) Start(threadiness int) error

type RegisterFunc

type RegisterFunc func(context.Context, *Management) error

Jump to

Keyboard shortcuts

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