Documentation ¶
Index ¶
- Constants
- 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(secretKeyGetter provider.SecretKeySelectorValueFunc) provider.CloudProvider
- func NewReconciler(kubeconfig string, clusterName string) (*reconciler, 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 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
Types ¶
type StorageClassAnnotationFilter ¶ added in v2.21.0
Click to show internal directories.
Click to hide internal directories.