mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 19:23:40 +00:00
add checks validation MinRequestTimeout of ServerRunOptions
This commit is contained in:
parent
50dd920837
commit
ba20be9911
@ -103,6 +103,10 @@ func (s *ServerRunOptions) Validate() []error {
|
|||||||
errors = append(errors, fmt.Errorf("--request-timeout can not be negative value"))
|
errors = append(errors, fmt.Errorf("--request-timeout can not be negative value"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if s.MinRequestTimeout < 0 {
|
||||||
|
errors = append(errors, fmt.Errorf("--min-request-timeout can not be negative value"))
|
||||||
|
}
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user