Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAction

func AssertAction(t *testing.T, actual clienttesting.Action, expected string)

func NewAppliedManifestWork

func NewAppliedManifestWork(hash string, index int) *workapiv1.AppliedManifestWork

func NewFakeRestMapper

func NewFakeRestMapper() *resource.Mapper

func NewManifestWork

func NewManifestWork(index int, objects ...*unstructured.Unstructured) (*workapiv1.ManifestWork, string)

func NewSecret

func NewSecret(name, namespace string, content string) *corev1.Secret

func NewUnstructured

func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured

func NewUnstructuredSecret

func NewUnstructuredSecret(namespace, name string, terminated bool, uid string) *unstructured.Unstructured

func NewUnstructuredWithContent

func NewUnstructuredWithContent(
	apiVersion, kind, namespace, name string, content map[string]interface{}) *unstructured.Unstructured

Types

type FakeSyncContext

type FakeSyncContext struct {

	// contains filtered or unexported fields

}

func NewFakeSyncContext

func NewFakeSyncContext(t *testing.T, workKey string) *FakeSyncContext

func (FakeSyncContext) Queue

func (FakeSyncContext) QueueKey

func (f FakeSyncContext) QueueKey() string

func (FakeSyncContext) Recorder

func (f FakeSyncContext) Recorder() events.Recorder