Skip to content

Commit

Permalink
Use empty json tags to please controller-gen. (#1181) (#1191)
Browse files Browse the repository at this point in the history
Co-Authored-By: Jan Schlicht <jan@d2iq.com>
  • Loading branch information
2 people authored and alenkacz committed Dec 17, 2019
1 parent ef07673 commit e5361cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pkg/apis/kudo/v1beta1/operatorversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ type Task struct {
// with the same json names as it would become ambiguous for the default parser. We might revisit this approach in the
// future should this become an issue.
type TaskSpec struct {
ResourceTaskSpec
DummyTaskSpec
PipeTaskSpec
ResourceTaskSpec `json:",inline"`
DummyTaskSpec `json:",inline"`
PipeTaskSpec `json:",inline"`
}

// ResourceTaskSpec is referencing a list of resources
Expand Down Expand Up @@ -185,8 +185,8 @@ func init() {
// OperatorDependency references a defined operator.
type OperatorDependency struct {
// Name specifies the name of the dependency. Referenced via defaults.config.
ReferenceName string `json:"referenceName"`
corev1.ObjectReference
ReferenceName string `json:"referenceName"`
corev1.ObjectReference `json:",inline"`

// Version captures the requirements for what versions of the above object
// are allowed.
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/kudo/v1beta1/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type TestAssert struct {
type ObjectReference struct {
corev1.ObjectReference `json:",inline"`
// Labels to match on.
Labels map[string]string
Labels map[string]string `json:"labels"`
}

// Command describes a command to run as a part of a test step or suite.
Expand Down

0 comments on commit e5361cb

Please sign in to comment.