Skip to content

Commit c104898

Browse files
committed
build breaks
1 parent bd28e5f commit c104898

File tree

2 files changed

+6
-43
lines changed

2 files changed

+6
-43
lines changed

pkg/apis/controller/v1beta1/appwrapper.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ type AppWrapperList struct {
5252

5353
// AppWrapperSpec describes how the App Wrapper will look like.
5454
type AppWrapperSpec struct {
55+
// +kubebuilder:validation:Type=number
56+
// +kubebuilder:validation:Format=int
5557
// +optional
56-
Priority int32 `json:"priority,omitempty"`
58+
Priority float64 `json:"priority,omitempty"`
5759

5860
// +kubebuilder:validation:Type=number
5961
// +kubebuilder:validation:Format=float
@@ -101,9 +103,10 @@ type AppWrapperResource struct {
101103
// +optional
102104
AllocatedReplicas int32 `json:"allocatedreplicas"`
103105

104-
// The priority of this resource
106+
// +kubebuilder:validation:Type=number
107+
// +kubebuilder:validation:Format=int
105108
// +optional
106-
Priority int32 `json:"priority"`
109+
Priority float64 `json:"priority,omitempty"`
107110

108111
// The increasing rate of priority value for this resource
109112
// +optional
@@ -280,7 +283,3 @@ type AppWrapperCondition struct {
280283
// A human readable message indicating details about the transition.
281284
Message string `json:"message,omitempty"`
282285
}
283-
284-
func init() {
285-
SchemeBuilder.Register(&AppWrapper{}, &AppWrapperList{})
286-
}

pkg/apis/controller/v1beta1/groupversion_info.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)