mirror of
https://github.com/rancher/types.git
synced 2025-06-28 06:26:49 +00:00
Use norman struct tags for limits of nodepool timeout
Extreme values could overflow nodepool timeout int64 value. Now, it will return an error for values > maxInt64 or less than 0.
This commit is contained in:
parent
cc1d9c767f
commit
9dda5ddc02
@ -157,7 +157,7 @@ type NodePoolSpec struct {
|
||||
DisplayName string `json:"displayName"`
|
||||
ClusterName string `json:"clusterName,omitempty" norman:"type=reference[cluster],noupdate,required"`
|
||||
|
||||
DeleteNotReadyAfterSecs time.Duration `json:"deleteNotReadyAfterSecs" norman:"default=0"`
|
||||
DeleteNotReadyAfterSecs time.Duration `json:"deleteNotReadyAfterSecs" norman:"default=0,max=9223372036854775807,min=0"`
|
||||
}
|
||||
|
||||
type NodePoolStatus struct {
|
||||
|
Loading…
Reference in New Issue
Block a user