Skip to content

Commit

Permalink
Add annotations for controller-gen. (#1194)
Browse files Browse the repository at this point in the history
These make the output closer to what is defined in kudoinit.
  • Loading branch information
porridge committed Dec 19, 2019
1 parent 59f9ec9 commit 689004b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/kudo/v1beta1/instance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ func (i *Instance) IsDeleting() bool {

// Instance is the Schema for the instances API.
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
type Instance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/kudo/v1beta1/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ type TestSuite struct {
// If set, do not delete the mocked control plane or kind cluster.
SkipClusterDelete bool `json:"skipClusterDelete"`
// Override the default timeout of 30 seconds (in seconds).
// +kubebuilder:validation:Format:=int64
Timeout int `json:"timeout"`
// The maximum number of tests to run at once (default: 8).
// +kubebuilder:validation:Format:=int64
Parallel int `json:"parallel"`
// The directory to output artifacts to (current working directory if not specified).
ArtifactsDir string `json:"artifactsDir"`
Expand All @@ -58,6 +60,7 @@ type TestStep struct {
// Override the default metadata. Set labels or override the test step name.
metav1.ObjectMeta `json:"metadata,omitempty"`

// +kubebuilder:validation:Format:=int64
Index int `json:"index,omitempty"`
// Objects to delete at the beginning of the test step.
Delete []ObjectReference `json:"delete,omitempty"`
Expand Down

0 comments on commit 689004b

Please sign in to comment.