Documentation
¶
Index ¶
- func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string)
- func AssertNoActions(t *testing.T, actualActions []clienttesting.Action)
- func HasCondition(conditions []metav1.Condition, expectedType, expectedReason string, ...) bool
- func NewAddOnPlacementScore(clusternamespace, name string) *addOnPlacementScoreBuilder
- func NewClusterInformerFactory(clusterClient clusterclient.Interface, objects ...runtime.Object) clusterinformers.SharedInformerFactory
- func NewClusterPredicate(labelSelector *metav1.LabelSelector, ...) clusterapiv1alpha1.ClusterPredicate
- func NewClusterSet(clusterSetName string) *clusterapiv1beta1.ManagedClusterSet
- func NewClusterSetBinding(namespace, clusterSetName string) *clusterapiv1beta1.ManagedClusterSetBinding
- func NewManagedCluster(clusterName string) *managedClusterBuilder
- func NewPlacement(namespace, name string) *placementBuilder
- func NewPlacementDecision(namespace, name string) *placementDecisionBuilder
- type FakePluginHandle
- func (f *FakePluginHandle) ClusterClient() clusterclient.Interface
- func (f *FakePluginHandle) DecisionLister() clusterlisterv1alpha1.PlacementDecisionLister
- func (f *FakePluginHandle) EventRecorder() kevents.EventRecorder
- func (f *FakePluginHandle) ScoreLister() clusterlisterv1alpha1.AddOnPlacementScoreLister
- type FakeSyncContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertActions ¶
func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string)
AssertActions asserts the actual actions have the expected action verb
func AssertNoActions ¶
func AssertNoActions(t *testing.T, actualActions []clienttesting.Action)
AssertNoActions asserts no actions are happened
func HasCondition ¶
func NewAddOnPlacementScore ¶ added in v0.3.0
func NewAddOnPlacementScore(clusternamespace, name string) *addOnPlacementScoreBuilder
func NewClusterInformerFactory ¶
func NewClusterInformerFactory(clusterClient clusterclient.Interface, objects ...runtime.Object) clusterinformers.SharedInformerFactory
func NewClusterPredicate ¶
func NewClusterPredicate(labelSelector *metav1.LabelSelector, claimSelector *clusterapiv1alpha1.ClusterClaimSelector) clusterapiv1alpha1.ClusterPredicate
func NewClusterSet ¶
func NewClusterSet(clusterSetName string) *clusterapiv1beta1.ManagedClusterSet
func NewClusterSetBinding ¶
func NewClusterSetBinding(namespace, clusterSetName string) *clusterapiv1beta1.ManagedClusterSetBinding
func NewManagedCluster ¶
func NewManagedCluster(clusterName string) *managedClusterBuilder
func NewPlacement ¶
func NewPlacement(namespace, name string) *placementBuilder
func NewPlacementDecision ¶
func NewPlacementDecision(namespace, name string) *placementDecisionBuilder
Types ¶
type FakePluginHandle ¶ added in v0.2.0
type FakePluginHandle struct {
// contains filtered or unexported fields
}
func NewFakePluginHandle ¶ added in v0.2.0
func NewFakePluginHandle( t *testing.T, client *clusterfake.Clientset, objects ...runtime.Object) *FakePluginHandle
func (*FakePluginHandle) ClusterClient ¶ added in v0.2.0
func (f *FakePluginHandle) ClusterClient() clusterclient.Interface
func (*FakePluginHandle) DecisionLister ¶ added in v0.2.0
func (f *FakePluginHandle) DecisionLister() clusterlisterv1alpha1.PlacementDecisionLister
func (*FakePluginHandle) EventRecorder ¶ added in v0.2.0
func (f *FakePluginHandle) EventRecorder() kevents.EventRecorder
func (*FakePluginHandle) ScoreLister ¶ added in v0.3.0
func (f *FakePluginHandle) ScoreLister() clusterlisterv1alpha1.AddOnPlacementScoreLister
type FakeSyncContext ¶
type FakeSyncContext struct {
// contains filtered or unexported fields
}
func NewFakeSyncContext ¶
func NewFakeSyncContext(t *testing.T, queueKey string) *FakeSyncContext
func (FakeSyncContext) Queue ¶
func (f FakeSyncContext) Queue() workqueue.RateLimitingInterface
func (FakeSyncContext) QueueKey ¶
func (f FakeSyncContext) QueueKey() string
func (FakeSyncContext) Recorder ¶
func (f FakeSyncContext) Recorder() events.Recorder
Click to show internal directories.
Click to hide internal directories.