mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Use unversioned.ListOptions in clients.
This commit is contained in:
@@ -571,7 +571,7 @@ func DefaultKubernetesUserAgent() string {
|
||||
|
||||
// TimeoutFromListOptions returns timeout to be set via TimeoutSeconds() method
|
||||
// based on given options.
|
||||
func TimeoutFromListOptions(options api.ListOptions) time.Duration {
|
||||
func TimeoutFromListOptions(options unversioned.ListOptions) time.Duration {
|
||||
if options.TimeoutSeconds != nil {
|
||||
return time.Duration(*options.TimeoutSeconds) * time.Second
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user