@@ -52,8 +52,10 @@ type AppWrapperList struct {
5252
5353// AppWrapperSpec describes how the App Wrapper will look like.
5454type 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
102104AllocatedReplicas 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.
281284Message string `json:"message,omitempty"`
282285}
283-
284- func init () {
285- SchemeBuilder .Register (& AppWrapper {}, & AppWrapperList {})
286- }
0 commit comments