Skip to content

Commit

Permalink
Use the correct type for UpgradableFrom. (#1197)
Browse files Browse the repository at this point in the history
It seems to me like using the full-blown type with spec, status and all had been a mistake.
This field seems unused in the code, so maybe that is why this was missed.

This is a baby step towards #862.
  • Loading branch information
porridge committed Dec 19, 2019
1 parent fec74d4 commit 770d862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/kudo/v1beta1/operatorversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type OperatorVersionSpec struct {
Dependencies []OperatorDependency `json:"dependencies,omitempty"`

// UpgradableFrom lists all OperatorVersions that can upgrade to this OperatorVersion.
UpgradableFrom []OperatorVersion `json:"upgradableFrom,omitempty"`
UpgradableFrom []corev1.ObjectReference `json:"upgradableFrom,omitempty"`
}

// Ordering specifies how the subitems in this plan/phase should be rolled out.
Expand Down
7 changes: 3 additions & 4 deletions pkg/apis/kudo/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 770d862

Please sign in to comment.