Documentation ¶
Index ¶
- Constants
- func EnsureCSIInfraTokenAccess(ctx context.Context, infraKubeconfig string) ([]byte, error)
- func GetCredentialsForCluster(cloud kubermaticv1.CloudSpec, ...) (kubeconfig string, err error)
- func GetKubermaticStandardPreset() *kubevirtv1.VirtualMachineInstancePreset
- func ListStorageClasses(ctx context.Context, client ctrlruntimeclient.Client, ...) (apiv2.StorageClassList, error)
- func NamespaceCreator(name string) reconciling.NamedNamespaceCreatorGetter
- func NewClientWithRestConfig(kubeconfig string) (ctrlruntimeclient.Client, *restclient.Config, error)
- func NewCloudProvider(dc *kubermaticv1.Datacenter, ...) (provider.CloudProvider, error)
- type StorageClassAnnotationFilter
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 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(dc *kubermaticv1.Datacenter, secretKeyGetter provider.SecretKeySelectorValueFunc) (provider.CloudProvider, error)
Types ¶
type StorageClassAnnotationFilter ¶ added in v2.21.0
Click to show internal directories.
Click to hide internal directories.