Documentation
¶
Index ¶
- Constants
- Variables
- func BeforeEach(ctx context.Context)
- func CreateTempOperatorRoute(ctx context.Context, cli client.Client) error
- func CreateTempWebhookRoute(ctx context.Context, cli client.Client) error
- func DeleteTempOperatorRoute(ctx context.Context, cli client.Client) error
- func DeleteTempWebhookRoute(ctx context.Context, cli client.Client) error
- func FailIfHighAvailableCluster(singleWorkerCluster bool)
- func FailIfNotOpenShift(ctx context.Context, cli client.Client, testName string)
- func FailIfSingleNodeCluster(singleWorkerCluster bool)
- func FlagParse()
- func GetClientConfig() *rest.Config
- func GetControllerRuntimeClient() client.Client
- func GetHCO(ctx context.Context, cli client.Client) *v1beta1.HyperConverged
- func GetK8sClientSet() *kubernetes.Clientset
- func IsOpenShift(ctx context.Context, cli client.Client) (bool, error)
- func PatchHCO(ctx context.Context, cli client.Client, patchBytes []byte) error
- func PatchMergeHCO(ctx context.Context, cli client.Client, patchBytes []byte) error
- func RestoreDefaults(ctx context.Context, cli client.Client)
- func UpdateHCO(ctx context.Context, cli client.Client, input *v1beta1.HyperConverged) (*v1beta1.HyperConverged, error)
- func UpdateHCORetry(ctx context.Context, cli client.Client, input *v1beta1.HyperConverged) *v1beta1.HyperConverged
- type DashboardTestConfig
- type DashboardTestItem
- type DataImportCronConfig
- type HCOPrometheusClient
- type ImageStreamConfig
- type QuickStartTestConfig
- type QuickStartTestItem
- type TestConfig
Constants ¶
const ( SingleNodeLabel = "SINGLE_NODE_ONLY" HighlyAvailableClusterLabel = "HIGHLY_AVAILABLE_CLUSTER" OpenshiftLabel = "OpenShift" TestNamespace = "hco-test-default" )
labels
const (
ConfigFileFlag = "config-file"
)
Variables ¶
var ( KubeVirtStorageClassLocal string InstallNamespace string )
Functions ¶
func BeforeEach ¶
func CreateTempOperatorRoute ¶ added in v1.16.0
CreateTempOperatorRoute creates a route to the HCO prometheus endpoint, to allow reading the metrics.
func CreateTempWebhookRoute ¶ added in v1.16.0
CreateTempWebhookRoute creates a route to the HCO prometheus endpoint, to allow reading the metrics.
func DeleteTempOperatorRoute ¶ added in v1.16.0
func DeleteTempWebhookRoute ¶ added in v1.16.0
func FailIfHighAvailableCluster ¶ added in v1.14.0
func FailIfHighAvailableCluster(singleWorkerCluster bool)
func FailIfNotOpenShift ¶ added in v1.13.0
func FailIfSingleNodeCluster ¶ added in v1.14.0
func FailIfSingleNodeCluster(singleWorkerCluster bool)
func GetClientConfig ¶ added in v1.13.0
func GetControllerRuntimeClient ¶ added in v1.13.0
func GetK8sClientSet ¶ added in v1.13.0
func GetK8sClientSet() *kubernetes.Clientset
func PatchHCO ¶ added in v1.13.0
PatchHCO updates the HCO CR using a DynamicClient, it can return errors on failures
func PatchMergeHCO ¶ added in v1.16.0
PatchMergeHCO patches the HCO CR using a DynamicClient, it can return errors on failures
func RestoreDefaults ¶ added in v1.13.0
func UpdateHCO ¶ added in v1.13.0
func UpdateHCO(ctx context.Context, cli client.Client, input *v1beta1.HyperConverged) (*v1beta1.HyperConverged, error)
UpdateHCO updates the HCO CR using a DynamicClient, it can return errors on failures
func UpdateHCORetry ¶ added in v1.13.0
func UpdateHCORetry(ctx context.Context, cli client.Client, input *v1beta1.HyperConverged) *v1beta1.HyperConverged
UpdateHCORetry updates the HCO CR in a safe way internally calling UpdateHCO_old UpdateHCORetry internally uses an async Eventually block refreshing the in-memory object if needed and setting there Spec, Annotations, Finalizers and Labels from the input object. UpdateHCORetry should be preferred over UpdateHCO_old to reduce test flakiness due to inevitable concurrency conflicts
Types ¶
type DashboardTestConfig ¶ added in v1.13.0
type DashboardTestConfig struct {
TestItems []DashboardTestItem `yaml:"testItems,omitempty"`
}
type DashboardTestItem ¶ added in v1.13.0
type DataImportCronConfig ¶ added in v1.13.0
type DataImportCronConfig struct {
ExpectedDataImportCrons []string `yaml:"expectedDataImportCrons,omitempty"`
ExpectedImageStream []ImageStreamConfig `yaml:"expectedImageStream,omitempty"`
Namespace string `yaml:"namespace,omitempty"`
}
type HCOPrometheusClient ¶ added in v1.13.0
type HCOPrometheusClient struct {
// contains filtered or unexported fields
}
func GetHCOPrometheusClient ¶ added in v1.13.0
func GetWebhookPrometheusClient ¶ added in v1.16.0
func (HCOPrometheusClient) GetHCOMetric ¶ added in v1.13.0
type ImageStreamConfig ¶ added in v1.13.0
type QuickStartTestConfig ¶ added in v1.4.1
type QuickStartTestConfig struct {
TestItems []QuickStartTestItem `yaml:"testItems,omitempty"`
}
type QuickStartTestItem ¶ added in v1.4.1
type TestConfig ¶ added in v1.4.1
type TestConfig struct {
QuickStart QuickStartTestConfig `yaml:"quickStart,omitempty"`
Dashboard DashboardTestConfig `yaml:"dashboard,omitempty"`
DataImportCron DataImportCronConfig `yaml:"dataImportCron,omitempty"`
}
func GetConfig ¶ added in v1.4.1
func GetConfig() *TestConfig