appresourcetest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppCRFromFilled

func NewAppCRFromFilled(modifyFunc func(v *applicationv1alpha1.App)) *applicationv1alpha1.App

NewAppCRFromFilled returns a *applicationv1alpha1.App object with the fully populated spec. It also takes modifyFunc which allows to modify the object before returning. This is useful for testing. Example usage:

appCR := NewAppCRFromFilled(func(v *applicationv1alpha1.App) {
	v.Name = "test-app-2"
	v.Spec.Catalog = "test-spec-catalog-2"
})

Types

This section is empty.

Jump to

Keyboard shortcuts

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