Documentation ¶
Index ¶
- func AssertActions(t *testing.T, actualActions []clienttesting.Action, expectedVerbs ...string)
- func AssertNoActions(t *testing.T, actualActions []clienttesting.Action)
- func NewAddon(name, namespace string, owners ...metav1.OwnerReference) *addonapiv1alpha1.ManagedClusterAddOn
- func NewApprovedCSR(addon, cluster string) *certv1.CertificateSigningRequest
- func NewCSR(addon, cluster string) *certv1.CertificateSigningRequest
- func NewClusterManagementAddon(name, crd, cr string) *addonapiv1alpha1.ClusterManagementAddOn
- func NewDeniedCSR(addon, cluster string) *certv1.CertificateSigningRequest
- func NewManagedCluster(name string) *clusterv1.ManagedCluster
- func NewManifestWork(name, namespace string, objects ...*unstructured.Unstructured) *workapiv1.ManifestWork
- func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured
- 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 NewAddon ¶
func NewAddon(name, namespace string, owners ...metav1.OwnerReference) *addonapiv1alpha1.ManagedClusterAddOn
func NewApprovedCSR ¶
func NewApprovedCSR(addon, cluster string) *certv1.CertificateSigningRequest
func NewCSR ¶
func NewCSR(addon, cluster string) *certv1.CertificateSigningRequest
func NewClusterManagementAddon ¶
func NewClusterManagementAddon(name, crd, cr string) *addonapiv1alpha1.ClusterManagementAddOn
func NewDeniedCSR ¶
func NewDeniedCSR(addon, cluster string) *certv1.CertificateSigningRequest
func NewManagedCluster ¶
func NewManagedCluster(name string) *clusterv1.ManagedCluster
func NewManifestWork ¶
func NewManifestWork(name, namespace string, objects ...*unstructured.Unstructured) *workapiv1.ManifestWork
func NewUnstructured ¶
func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured
Types ¶
type FakeSyncContext ¶
type FakeSyncContext struct {
// contains filtered or unexported fields
}
func NewFakeSyncContext ¶
func NewFakeSyncContext(t *testing.T, addonKey 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.