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.
Click to show internal directories.
Click to hide internal directories.