kmm

package
v0.0.0-...-091666d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevicePluginContainerBuilder

type DevicePluginContainerBuilder struct {
	// contains filtered or unexported fields
}

DevicePluginContainerBuilder provides struct for the module object containing the DevicePluginContainerSpec definitions.

func NewDevicePluginContainerBuilder

func NewDevicePluginContainerBuilder(image string) *DevicePluginContainerBuilder

NewDevicePluginContainerBuilder creates DevicePluginContainerSpec based on given arguments and mutation functs.

func (*DevicePluginContainerBuilder) GetDevicePluginContainerConfig

func (builder *DevicePluginContainerBuilder) GetDevicePluginContainerConfig() (
	*moduleV1Beta1.DevicePluginContainerSpec, error)

GetDevicePluginContainerConfig returns DevicePluginContainerSpec with needed configuration.

func (*DevicePluginContainerBuilder) WithEnv

func (builder *DevicePluginContainerBuilder) WithEnv(name, value string) *DevicePluginContainerBuilder

WithEnv adds specific env to DevicePlugin Container.

func (*DevicePluginContainerBuilder) WithVolumeMount

func (builder *DevicePluginContainerBuilder) WithVolumeMount(mountPath, name string) *DevicePluginContainerBuilder

WithVolumeMount adds VolumeMount to DevicePlugin Container.

type KernelMappingAdditionalOptions

type KernelMappingAdditionalOptions func(builder *KernelMappingBuilder) (*KernelMappingBuilder, error)

KernelMappingAdditionalOptions additional options for KernelMapping object.

type KernelMappingBuilder

type KernelMappingBuilder struct {
	// contains filtered or unexported fields
}

KernelMappingBuilder builds kernelMapping struct based on given parameters.

func NewLiteralKernelMappingBuilder

func NewLiteralKernelMappingBuilder(literal string) *KernelMappingBuilder

NewLiteralKernelMappingBuilder create new kernel mapping element based on literal.

func NewRegExKernelMappingBuilder

func NewRegExKernelMappingBuilder(regex string) *KernelMappingBuilder

NewRegExKernelMappingBuilder creates new kernel mapping element based on regex.

func (*KernelMappingBuilder) BuildKernelMappingConfig

func (builder *KernelMappingBuilder) BuildKernelMappingConfig() (*moduleV1Beta1.KernelMapping, error)

BuildKernelMappingConfig returns kernel mapping config if error is not occur.

func (*KernelMappingBuilder) RegistryTLS

func (builder *KernelMappingBuilder) RegistryTLS(insecure, skipTLSVerify bool) *KernelMappingBuilder

RegistryTLS adds the specified RegistryTLS to the KernelMapper.

func (*KernelMappingBuilder) WithBuildArg

func (builder *KernelMappingBuilder) WithBuildArg(argName, argValue string) *KernelMappingBuilder

WithBuildArg adds the specified Build Args config to the KernelMapper.

func (*KernelMappingBuilder) WithBuildDockerCfgFile

func (builder *KernelMappingBuilder) WithBuildDockerCfgFile(name string) *KernelMappingBuilder

WithBuildDockerCfgFile adds the specified DockerCfgFil config to the KernelMapper Build.

func (*KernelMappingBuilder) WithBuildImageRegistryTLS

func (builder *KernelMappingBuilder) WithBuildImageRegistryTLS(insecure, skipTLSVerify bool) *KernelMappingBuilder

WithBuildImageRegistryTLS adds the specified ImageRegistryTLS config to the KernelMapper Build.

func (*KernelMappingBuilder) WithBuildSecret

func (builder *KernelMappingBuilder) WithBuildSecret(secret string) *KernelMappingBuilder

WithBuildSecret adds the specified Build Secret config to the KernelMapper.

func (*KernelMappingBuilder) WithContainerImage

func (builder *KernelMappingBuilder) WithContainerImage(image string) *KernelMappingBuilder

WithContainerImage adds the specified Container Image config to the KernelMapper.

func (*KernelMappingBuilder) WithInTreeModuleToRemove

func (builder *KernelMappingBuilder) WithInTreeModuleToRemove(existingModule string) *KernelMappingBuilder

WithInTreeModuleToRemove adds the module to be removed to KernelMapper.

func (*KernelMappingBuilder) WithOptions

WithOptions creates KernelMapping with generic mutation options.

func (*KernelMappingBuilder) WithSign

func (builder *KernelMappingBuilder) WithSign(certSecret, keySecret string, fileToSign []string) *KernelMappingBuilder

WithSign adds the specified Sign config to the KernelMapper.

type ManagedClusterModuleAdditionalOptions

type ManagedClusterModuleAdditionalOptions func(builder *ManagedClusterModuleBuilder) (
	*ManagedClusterModuleBuilder, error)

ManagedClusterModuleAdditionalOptions additional options for managedclustermodule object.

type ManagedClusterModuleBuilder

type ManagedClusterModuleBuilder struct {
	Definition *mcmV1Beta1.ManagedClusterModule
	Object     *mcmV1Beta1.ManagedClusterModule
	// contains filtered or unexported fields
}

ManagedClusterModuleBuilder provides struct for the managedclustermodule object containing connection to cluster and the managedclustermodule definitions.

func NewManagedClusterModuleBuilder

func NewManagedClusterModuleBuilder(apiClient *clients.Settings, name, nsname string) *ManagedClusterModuleBuilder

NewManagedClusterModuleBuilder creates a new instance of ManagedClusterModuleBuilder.

func PullManagedClusterModule

func PullManagedClusterModule(apiClient *clients.Settings, name, nsname string) (*ManagedClusterModuleBuilder, error)

PullManagedClusterModule pulls existing module from cluster.

func (*ManagedClusterModuleBuilder) Create

Create builds managedclustermodule in the cluster and stores object in struct.

func (*ManagedClusterModuleBuilder) Delete

Delete removes the managedclustermodule.

func (*ManagedClusterModuleBuilder) Exists

func (builder *ManagedClusterModuleBuilder) Exists() bool

Exists checks whether the given managedclustermodule exists.

func (*ManagedClusterModuleBuilder) Get

Get fetches the defined managedclustermodule from the cluster.

func (*ManagedClusterModuleBuilder) Update

Update modifies an existing managedclustermodule on the cluster.

func (*ManagedClusterModuleBuilder) WithModuleSpec

WithModuleSpec sets the ModuleSpec.

func (*ManagedClusterModuleBuilder) WithOptions

WithOptions creates ManagedClusterModule with generic mutation options.

func (*ManagedClusterModuleBuilder) WithSelector

func (builder *ManagedClusterModuleBuilder) WithSelector(
	selector map[string]string) *ManagedClusterModuleBuilder

WithSelector sets the selector for the managedclustermodule object.

func (*ManagedClusterModuleBuilder) WithSpokeNamespace

func (builder *ManagedClusterModuleBuilder) WithSpokeNamespace(
	spokeNamespace string) *ManagedClusterModuleBuilder

WithSpokeNamespace sets the namespace where the module will be deployed on the spoke.

type ModuleAdditionalOptions

type ModuleAdditionalOptions func(builder *ModuleBuilder) (*ModuleBuilder, error)

ModuleAdditionalOptions additional options for module object.

type ModuleBuilder

type ModuleBuilder struct {
	// Module definition. Used to create a Module object.
	Definition *moduleV1Beta1.Module
	// Created Module object.
	Object *moduleV1Beta1.Module
	// contains filtered or unexported fields
}

ModuleBuilder provides struct for the module object containing connection to the cluster and the module definitions.

func NewModuleBuilder

func NewModuleBuilder(
	apiClient *clients.Settings, name, nsname string) *ModuleBuilder

NewModuleBuilder creates a new instance of ModuleBuilder.

func Pull

func Pull(apiClient *clients.Settings, name, nsname string) (*ModuleBuilder, error)

Pull pulls existing module from cluster.

func (*ModuleBuilder) BuildModuleSpec

func (builder *ModuleBuilder) BuildModuleSpec() (moduleV1Beta1.ModuleSpec, error)

BuildModuleSpec returns module spec.

func (*ModuleBuilder) Create

func (builder *ModuleBuilder) Create() (*ModuleBuilder, error)

Create builds module in the cluster and stores object in struct.

func (*ModuleBuilder) Delete

func (builder *ModuleBuilder) Delete() (*ModuleBuilder, error)

Delete removes the module.

func (*ModuleBuilder) Exists

func (builder *ModuleBuilder) Exists() bool

Exists checks whether the given module exists.

func (*ModuleBuilder) Get

func (builder *ModuleBuilder) Get() (*moduleV1Beta1.Module, error)

Get fetches the defined module from the cluster.

func (*ModuleBuilder) Update

func (builder *ModuleBuilder) Update() (*ModuleBuilder, error)

Update modifies the existing module in the cluster.

func (*ModuleBuilder) WithDevicePluginContainer

func (builder *ModuleBuilder) WithDevicePluginContainer(
	container *moduleV1Beta1.DevicePluginContainerSpec) *ModuleBuilder

WithDevicePluginContainer adds the specified DevicePlugin container to the Module.

func (*ModuleBuilder) WithDevicePluginServiceAccount

func (builder *ModuleBuilder) WithDevicePluginServiceAccount(srvAccountName string) *ModuleBuilder

WithDevicePluginServiceAccount adds the specified Device Plugin ServiceAccount to the Module.

func (*ModuleBuilder) WithDevicePluginVolume

func (builder *ModuleBuilder) WithDevicePluginVolume(name string, configMapName string) *ModuleBuilder

WithDevicePluginVolume adds the specified DevicePlugin volume to the Module.

func (*ModuleBuilder) WithImageRepoSecret

func (builder *ModuleBuilder) WithImageRepoSecret(imageRepoSecret string) *ModuleBuilder

WithImageRepoSecret adds the specific ImageRepoSecret to the Module.

func (*ModuleBuilder) WithLoadServiceAccount

func (builder *ModuleBuilder) WithLoadServiceAccount(srvAccountName string) *ModuleBuilder

WithLoadServiceAccount adds the specified Load ServiceAccount to the Module.

func (*ModuleBuilder) WithModuleLoaderContainer

func (builder *ModuleBuilder) WithModuleLoaderContainer(
	container *moduleV1Beta1.ModuleLoaderContainerSpec) *ModuleBuilder

WithModuleLoaderContainer adds the specified ModuleLoader container to the Module.

func (*ModuleBuilder) WithNodeSelector

func (builder *ModuleBuilder) WithNodeSelector(nodeSelector map[string]string) *ModuleBuilder

WithNodeSelector adds the specified NodeSelector to the Module.

func (*ModuleBuilder) WithOptions

func (builder *ModuleBuilder) WithOptions(options ...ModuleAdditionalOptions) *ModuleBuilder

WithOptions creates Module with generic mutation options.

type ModuleLoaderContainerAdditionalOptions

type ModuleLoaderContainerAdditionalOptions func(
	builder *ModuleLoaderContainerBuilder) (*ModuleLoaderContainerBuilder, error)

ModuleLoaderContainerAdditionalOptions additional options for ModuleLoaderContainer object.

type ModuleLoaderContainerBuilder

type ModuleLoaderContainerBuilder struct {
	// contains filtered or unexported fields
}

ModuleLoaderContainerBuilder provides struct for the module object containing the ModuleLoaderContainerSpec definitions.

func NewModLoaderContainerBuilder

func NewModLoaderContainerBuilder(modName string) *ModuleLoaderContainerBuilder

NewModLoaderContainerBuilder creates a new instance of ModuleLoaderContainerBuilder.

func (*ModuleLoaderContainerBuilder) BuildModuleLoaderContainerCfg

func (builder *ModuleLoaderContainerBuilder) BuildModuleLoaderContainerCfg() (
	*moduleV1Beta1.ModuleLoaderContainerSpec, error)

BuildModuleLoaderContainerCfg returns ModuleLoaderContainerSpec struct.

func (*ModuleLoaderContainerBuilder) WithImagePullPolicy

func (builder *ModuleLoaderContainerBuilder) WithImagePullPolicy(policy string) *ModuleLoaderContainerBuilder

WithImagePullPolicy adds the specified ImagePullPolicy to the ModuleLoaderContainerBuilder.

func (*ModuleLoaderContainerBuilder) WithKernelMapping

WithKernelMapping adds the specified KernelMapping to the ModuleLoaderContainerBuilder.

func (*ModuleLoaderContainerBuilder) WithModprobeSpec

func (builder *ModuleLoaderContainerBuilder) WithModprobeSpec(dirName, fwPath string,
	parameters, args, rawargs, moduleLoadingOrder []string) *ModuleLoaderContainerBuilder

WithModprobeSpec adds the specified Modprobe to the ModuleLoaderContainerBuilder.

func (*ModuleLoaderContainerBuilder) WithOptions

WithOptions creates ModuleLoaderContainer with generic mutation options.

func (*ModuleLoaderContainerBuilder) WithVersion

func (builder *ModuleLoaderContainerBuilder) WithVersion(version string) *ModuleLoaderContainerBuilder

WithVersion adds the specified version to the ModuleLoaderContainerBuilder.

type PreflightValidationOCPAdditionalOptions

type PreflightValidationOCPAdditionalOptions func(
	builder *PreflightValidationOCPBuilder) (*PreflightValidationOCPBuilder, error)

PreflightValidationOCPAdditionalOptions additional options for preflightvalidationocp object.

type PreflightValidationOCPBuilder

type PreflightValidationOCPBuilder struct {
	// PreflightValidationOCP definition. Used to create a PreflightValidationOCP object.
	Definition *moduleV1Beta1.PreflightValidationOCP
	// Created PreflightValidationOCP object.
	Object *moduleV1Beta1.PreflightValidationOCP
	// contains filtered or unexported fields
}

PreflightValidationOCPBuilder provides struct for the preflightvalidationocp object containing connection to the cluster and the preflightvalidationocp definitions.

func NewPreflightValidationOCPBuilder

func NewPreflightValidationOCPBuilder(
	apiClient *clients.Settings, name, nsname string) *PreflightValidationOCPBuilder

NewPreflightValidationOCPBuilder creates a new instance of PreflightValidationOCPBuilder.

func PullPreflightValidationOCP

func PullPreflightValidationOCP(apiClient *clients.Settings,
	name, nsname string) (*PreflightValidationOCPBuilder, error)

PullPreflightValidationOCP fetches existing PreflightValidationOCP from the cluster.

func (*PreflightValidationOCPBuilder) Create

Create builds preflightvalidationocp in the cluster and stores object in struct.

func (*PreflightValidationOCPBuilder) Delete

Delete removes a preflightvalidationocp from the cluster.

func (*PreflightValidationOCPBuilder) Exists

func (builder *PreflightValidationOCPBuilder) Exists() bool

Exists checks if the defined preflightvalidationocp has already need created.

func (*PreflightValidationOCPBuilder) Get

Get fetches the defined preflightvalidationocp from the cluster.

func (*PreflightValidationOCPBuilder) Update

Update modifies an existing preflightvalidationocp on the cluster.

func (*PreflightValidationOCPBuilder) WithOptions

WithOptions creates Module with generic mutation options.

func (*PreflightValidationOCPBuilder) WithPushBuiltImage

func (builder *PreflightValidationOCPBuilder) WithPushBuiltImage(push bool) *PreflightValidationOCPBuilder

WithPushBuiltImage configures the build to be pushed to the registry.

func (*PreflightValidationOCPBuilder) WithReleaseImage

func (builder *PreflightValidationOCPBuilder) WithReleaseImage(image string) *PreflightValidationOCPBuilder

WithReleaseImage sets the image for which the preflightvalidationocp checks the module.

func (*PreflightValidationOCPBuilder) WithUseRTKernel

func (builder *PreflightValidationOCPBuilder) WithUseRTKernel(flag bool) *PreflightValidationOCPBuilder

WithUseRTKernel specifies if the kernel is realtime.

Jump to

Keyboard shortcuts

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