Documentation ¶
Overview ¶
Package vmoperator contains utils to run tests with the vm-operator in standalone mode.
Index ¶
- Constants
- func GetDistributedPortGroup(ctx context.Context, c client.Client) (string, error)
- func GetVCenterSession(ctx context.Context, c client.Client, enableKeepAlive bool, ...) (*session.Session, error)
- func ReconcileDependencies(ctx context.Context, c client.Client, ...) error
- func Set(to Setter, condition *vmoprv1.Condition)
- func TrueCondition(t vmoprv1.ConditionType) *vmoprv1.Condition
- type Getter
- type Setter
Constants ¶
View Source
const DefaultNamespace = "vmware-system-vmop"
View Source
const (
ReadyConditionType = "Ready"
)
Variables ¶
This section is empty.
Functions ¶
func GetDistributedPortGroup ¶
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 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) }
Click to show internal directories.
Click to hide internal directories.