mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Fix timeoutSeconds parameter
This commit is contained in:
@@ -466,7 +466,8 @@ func (r *Request) TimeoutSeconds(d time.Duration) *Request {
|
||||
return r
|
||||
}
|
||||
if d != 0 {
|
||||
r.Param("timeoutSeconds", d.String())
|
||||
timeout := int64(d.Seconds())
|
||||
r.Param("timeoutSeconds", strconv.FormatInt(timeout, 10))
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
Reference in New Issue
Block a user