testing

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestNamespace = "default"
)

Variables

This section is empty.

Functions

func AddPatchCollectorReactor added in v0.5.0

func AddPatchCollectorReactor(client *fake.FakeDynamicClient, patches *[]map[string]interface{})

func NewApp

func NewApp(name string, modifiers ...func(app *unstructured.Unstructured)) *unstructured.Unstructured

func NewFakeClient added in v1.1.0

func NewFakeClient(objects ...runtime.Object) *fake.FakeDynamicClient

func NewProject

func NewProject(name string, modifiers ...func(app *unstructured.Unstructured)) *unstructured.Unstructured

func WithAnnotations

func WithAnnotations(annotations map[string]string) func(obj *unstructured.Unstructured)

func WithConditions added in v0.7.0

func WithConditions(pairs ...string) func(app *unstructured.Unstructured)

func WithHealthStatus

func WithHealthStatus(status string) func(app *unstructured.Unstructured)

func WithObservedAt added in v0.6.0

func WithObservedAt(t time.Time) func(app *unstructured.Unstructured)

func WithProject

func WithProject(project string) func(app *unstructured.Unstructured)

func WithReconciledAt added in v0.6.0

func WithReconciledAt(t time.Time) func(app *unstructured.Unstructured)

func WithRepoURL added in v0.7.0

func WithRepoURL(repo string) func(app *unstructured.Unstructured)

func WithSyncOperationFinishedAt added in v0.6.0

func WithSyncOperationFinishedAt(t time.Time) func(app *unstructured.Unstructured)

func WithSyncOperationPhase

func WithSyncOperationPhase(phase string) func(app *unstructured.Unstructured)

func WithSyncOperationStartAt added in v0.5.0

func WithSyncOperationStartAt(t time.Time) func(app *unstructured.Unstructured)

func WithSyncStatus

func WithSyncStatus(status string) func(app *unstructured.Unstructured)

Types

This section is empty.

Jump to

Keyboard shortcuts

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