Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.Extender.HTTPTimeout is a time.Duration #89396

Closed
mikedanese opened this issue Mar 24, 2020 · 14 comments
Closed

v1.Extender.HTTPTimeout is a time.Duration #89396

mikedanese opened this issue Mar 24, 2020 · 14 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.

Comments

@mikedanese
Copy link
Member

// HTTPTimeout specifies the timeout duration for a call to the extender. Filter timeout fails the scheduling of the pod. Prioritize
// timeout is ignored, k8s/other extenders priorities are used to select the node.
HTTPTimeout time.Duration `json:"httpTimeout,omitempty"`

This requires specification as int64 nanoseconds so a one second timeout would need to be specified as 1000000000. It should be a metav1.Duration like other durations in the API but it's been like this since 1.2. Is anyone actually using this field?

@mikedanese mikedanese added kind/bug Categorizes issue or PR as related to a bug. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. labels Mar 24, 2020
@angao
Copy link
Contributor

angao commented Mar 25, 2020

@alculquicondor WDYT? I can do this update if it is accepted.

@alculquicondor
Copy link
Member

Any updates in here requires a new API version.
@mikedanese wasn't there a related issues already opened for this?
Can anybody work on a KEP?

@angao
Copy link
Contributor

angao commented Mar 26, 2020

@alculquicondor I can write a KEP for this.

@gavinfish
Copy link
Contributor

/cc

@mikedanese
Copy link
Member Author

@alculquicondor, not sure if there is a releated issue. I noticed it working on openapi stuff.

@alculquicondor
Copy link
Member

Sorry, I confused you with @damemi who had done some work in 1.18 to make our API compliant.

@damemi
Copy link
Contributor

damemi commented Mar 26, 2020

@mikedanese should it be a metav1.Duration? Or an integer value? I've noticed in the API conventions that using Duration in the API isn't advised in order to keep compatibility with non-go clients (https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#units)

@damemi
Copy link
Contributor

damemi commented Mar 26, 2020

(cross-ref to the open issue to improve the extender API: #88634)

@liggitt
Copy link
Member

liggitt commented Mar 26, 2020

As a config API, this isn't served anywhere, so the only consumer is the go scheduler binary. Other config APIs use metav1.Duration or a plain integer with seconds in the field name to clarify the units.

@damemi
Copy link
Contributor

damemi commented Mar 26, 2020

Thanks @liggitt, I've been confused on what the distinction was

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 24, 2020
@alculquicondor
Copy link
Member

We just fixed this for KubeSchedulerConfiguration (going for v1beta1 in 1.19) #91625

Once this is GA, the Policy API (which uses this Extender type) will be removed #92143

@alculquicondor
Copy link
Member

/close

@k8s-ci-robot
Copy link
Contributor

@alculquicondor: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling.
Projects
None yet
Development

No branches or pull requests

8 participants