vmoperator

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package vmoperator contains utils to run tests with the vm-operator in standalone mode.

Index

Constants

View Source
const DefaultNamespace = "vmware-system-vmop"
View Source
const (
	ReadyConditionType = "Ready"
)

Variables

This section is empty.

Functions

func GetDistributedPortGroup

func GetDistributedPortGroup(ctx context.Context, c client.Client) (string, error)

GetDistributedPortGroup returns a the DistributedPortGroup from vm-operator config.

func GetVCenterSession

func GetVCenterSession(ctx context.Context, c client.Client, enableKeepAlive bool, keepAliveDuration time.Duration) (*session.Session, error)

GetVCenterSession returns a VCenter session from vm-operator config.

func ReconcileDependencies

func ReconcileDependencies(ctx context.Context, c client.Client, dependenciesConfig *vcsimv1.VMOperatorDependencies) error

ReconcileDependencies reconciles dependencies for the vm-operator. NOTE: This func is idempotent, it creates objects if missing otherwise it uses existing ones (this will allow e.g. to update images once and re-use for many test run).

func Set

func Set(to Setter, condition *vmoprv1.Condition)

func TrueCondition

func TrueCondition(t vmoprv1.ConditionType) *vmoprv1.Condition

Types

type Getter

type Getter interface {
	client.Object

	// GetConditions returns the list of conditions for a cluster API object.
	GetConditions() vmoprv1.Conditions
}

type Setter

type Setter interface {
	Getter
	SetConditions(vmoprv1.Conditions)
}

Jump to

Keyboard shortcuts

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