1
0
mirror of https://github.com/rancher/types.git synced 2025-09-12 13:03:45 +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:
Dax McDonald
2019-08-07 09:57:12 -07:00
parent cc1d9c767f
commit 9dda5ddc02

View File

@@ -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 {