Documentation ¶
Index ¶
- func CreateTestManifestWork(name, namespace string, placementName string, clusterName string) *workapiv1.ManifestWork
- func CreateTestManifestWorkReplicaSet(name string, ns string, placementNames ...string) *workapiv1alpha1.ManifestWorkReplicaSet
- func CreateTestManifestWorkReplicaSetWithRollOutStrategy(name string, ns string, placements map[string]clusterv1alpha1.RolloutStrategy) *workapiv1alpha1.ManifestWorkReplicaSet
- func CreateTestManifestWorkSpecWithSecret(mApiVersion string, mKind string, mNS string, mName string) workapiv1.ManifestWorkSpec
- func CreateTestManifestWorks(name, namespace string, placementName string, clusters ...string) []runtime.Object
- func CreateTestPlacement(name string, ns string, clusters ...string) (*clusterv1beta1.Placement, *clusterv1beta1.PlacementDecision)
- func CreateTestPlacementWithDecisionStrategy(name string, ns string, clsPerDecisionGroup int, clusters ...string) (*clusterv1beta1.Placement, []*clusterv1beta1.PlacementDecision)
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 CreateTestManifestWorks ¶
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.
Click to show internal directories.
Click to hide internal directories.