api

package
v0.0.0-...-3ef91bc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleLoaderData

type ModuleLoaderData struct {
	// kernel version
	KernelVersion string
	// Repo secret for DS images
	ImageRepoSecret *v1.LocalObjectReference

	// Selector for DS
	Selector map[string]string

	// Name
	Name string

	// Namspace
	Namespace string

	// service account for DS
	ServiceAccountName string

	// Build contains build instructions.
	Build *kmmv1beta1.Build

	// Sign provides default kmod signing settings
	Sign *kmmv1beta1.Sign

	// Module version
	ModuleVersion string

	// ContainerImage is a top-level field
	ContainerImage string

	// Image pull policy.
	ImagePullPolicy v1.PullPolicy

	// Modprobe is a set of properties to customize which module modprobe loads and with which properties.
	Modprobe kmmv1beta1.ModprobeSpec

	// RegistryTLS set the TLS configs for accessing the registry of the module-loader's image.
	RegistryTLS *kmmv1beta1.TLSOptions

	// InTreeModulesToRemove - in case array not empty, remove the modules prior to loading the module specified in moduleName
	InTreeModulesToRemove []string

	// used for setting the owner field of jobs/buildconfigs
	Owner metav1.Object
}

ModuleLoaderData contains all the data needed for succesfull execution of Build,Sign, ModuleLoader flow per specific kernel. It is constructed at the begining of the Reconciliation loop flow.It contains all the data after merging/resolving all the definitions (Build/Sign configuration from KM or from Container, ContainerImage etc'). From that point on , it is the only structure that is needed as input, no need for Module or for KernelMapping

func (*ModuleLoaderData) NamespacedName

func (mld *ModuleLoaderData) NamespacedName() types.NamespacedName

Jump to

Keyboard shortcuts

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