kubevirtexternalinfra

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfig added in v0.1.11

func GetKubeConfig(ctx context.Context, cl client.Client, secretNamespace, secretName string) ([]byte, error)

func ValidateClusterVersions added in v0.1.16

func ValidateClusterVersions(ctx context.Context, cl KubevirtInfraClient) error

Types

type KubevirtInfraClient

type KubevirtInfraClient interface {
	GetInfraK8sVersion() (*semver.Version, error)
	GetInfraKubevirtVersion(ctx context.Context) (*semver.Version, error)
	GetInfraClient() client.Client
	GetInfraNamespace() string
}

type KubevirtInfraClientMap

type KubevirtInfraClientMap interface {
	DiscoverKubevirtClusterClient(context.Context, client.Client, string, *hyperv1.KubevirtPlatformCredentials, string, string) (KubevirtInfraClient, error)
	Delete(string)
}

func NewKubevirtInfraClientMap

func NewKubevirtInfraClientMap() KubevirtInfraClientMap

func NewMockKubevirtInfraClientMap added in v0.1.11

func NewMockKubevirtInfraClientMap(client client.Client, cnvVersion, k8sVersion string) KubevirtInfraClientMap

Jump to

Keyboard shortcuts

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