kubevirt

package
v2.21.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 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 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)

func NewCloudProvider

func NewCloudProvider(secretKeyGetter provider.SecretKeySelectorValueFunc) provider.CloudProvider

func NewReconciler added in v2.19.0

func NewReconciler(kubeconfig string, clusterName string) (*reconciler, 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