test

package
v0.13.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestManifestWork added in v0.13.0

func CreateTestManifestWork(name, namespace string, placementName string, clusterName string) *workapiv1.ManifestWork

func CreateTestManifestWorkReplicaSet

func CreateTestManifestWorkReplicaSet(name string, ns string, placementNames ...string) *workapiv1alpha1.ManifestWorkReplicaSet

func CreateTestManifestWorkReplicaSetWithRollOutStrategy added in v0.13.0

func CreateTestManifestWorkReplicaSetWithRollOutStrategy(name string, ns string,
	placements map[string]clusterv1alpha1.RolloutStrategy) *workapiv1alpha1.ManifestWorkReplicaSet

func CreateTestManifestWorkSpecWithSecret added in v0.13.0

func CreateTestManifestWorkSpecWithSecret(mApiVersion string, mKind string, mNS string, mName string) workapiv1.ManifestWorkSpec

func CreateTestManifestWorks

func CreateTestManifestWorks(name, namespace string, placementName string, clusters ...string) []runtime.Object

func CreateTestPlacement

func CreateTestPlacement(name string, ns string, clusters ...string) (*clusterv1beta1.Placement, *clusterv1beta1.PlacementDecision)

Return placement with predicate of label cluster name

func CreateTestPlacementWithDecisionStrategy added in v0.13.0

func CreateTestPlacementWithDecisionStrategy(name string, ns string, clsPerDecisionGroup int,
	clusters ...string) (*clusterv1beta1.Placement, []*clusterv1beta1.PlacementDecision)

Types

This section is empty.

Jump to

Keyboard shortcuts

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