pkg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutSecond           = 5 * time.Second
	ConfigFile              = "/etc/ipxe-service/config.yaml"
	ServiceServerCert       = "ipxe-service-server-cert"
	DefaultSecretPath       = "/etc/ipxe-default-secret"
	DefaultConfigMapPath    = "/etc/ipxe-default-cm"
	InventoryMacLabelPrefix = "metal.ironcore.dev/mac-address-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigmapNS          string `yaml:"configmap-namespace"`
	IpamNS               string `yaml:"ipam-namespace"`
	MachineRequestNS     string `yaml:"machine-request-namespace"`
	InventoryNS          string `yaml:"inventory-namespace"`
	ImageNS              string `yaml:"k8simage-namespace"`
	DisableForwardHeader bool   `yaml:"disable-forward-header,omitempty"`
}

func GetConf

func GetConf(configFile string) Config

type IPXE

type IPXE struct {
	Config    Config
	K8sClient K8sClient
}

func (IPXE) Start

func (i IPXE) Start()

type K8sClient

type K8sClient struct {
	Client        client.Client
	EventRecorder record.EventRecorder
}

func NewK8sClient

func NewK8sClient(cfg *rest.Config, options client.Options) K8sClient

Jump to

Keyboard shortcuts

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