kubevirt

package
v2.21.11 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FinalizerNamespace will ensure the deletion of the dedicated namespace.
	FinalizerNamespace = "kubermatic.k8c.io/cleanup-kubevirt-namespace"
)
View Source
const (
	InfraStorageClassAnnotation = "kubevirt-initialization.k8c.io/initialize-sc"
)

Variables

This section is empty.

Functions

func EnsureCSIInfraTokenAccess added in v2.21.5

func EnsureCSIInfraTokenAccess(ctx context.Context, infraKubeconfig string) ([]byte, error)

func GetCredentialsForCluster

func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, secretKeySelector provider.SecretKeySelectorValueFunc) (kubeconfig string, err error)

GetCredentialsForCluster returns the credentials for the passed in cloud spec or an error.

func GetKubermaticStandardPreset added in v2.21.0

func GetKubermaticStandardPreset() *kubevirtv1.VirtualMachineInstancePreset

GetKubermaticStandardPreset returns a standard VirtualMachineInstancePreset with 2 CPUs and 8Gi of memory.

func ListStorageClasses added in v2.21.0

func ListStorageClasses(ctx context.Context, client ctrlruntimeclient.Client, annotationFilter StorageClassAnnotationFilter) (apiv2.StorageClassList, error)

func NamespaceCreator added in v2.21.0

func NamespaceCreator(name string) reconciling.NamedNamespaceCreatorGetter

func NewClientWithRestConfig added in v2.19.0

func NewClientWithRestConfig(kubeconfig string) (ctrlruntimeclient.Client, *restclient.Config, error)

Types

type StorageClassAnnotationFilter added in v2.21.0

type StorageClassAnnotationFilter func(map[string]string) bool

Jump to

Keyboard shortcuts

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