-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Probe.SuccessThreshold validation is contextual (bad) #81301
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
@thockin is it still something that requires a fix in the current API? |
@thockin can you please elaborate? |
sig-node triage meeting: @thockin is suggesting startupProbes to have success threshold as 2 /triage accepted |
The issue I meant is that the API has a field which CAN be changed, but MUST NOT be changed in some contexts. A field which "must be 1" should not exist. |
/remove-triage needs-information |
The prooblem is it implies an in-between state that is neither "fully alive" nor "dead enough to restart", which has no bounds on time and unclear semantics. Specifically, the discussion from #106025 (comment) and down. I could be OK with it, if we define the semantics, but it's not as simple as I originally thought when I opened that PR (shocking, I know). |
I see, and what if we simply ignore the value and default to 1 with liveness and startup, updating the comments to have proper documentation? |
As a general rule, we don't want to change any input a user specifically provided. If they say nothing, we can default it. If they say
|
Comments for this field (staging/src/k8s.io/api/core/v1/types.go) say "Must be 1 for liveness" and #77807 is adding startup in the same way.
This is kind of gross API. It would be nice if we could just make that field work normally for those contexts (I am not sure why we don't want it to work, even if it is odd).
/kind bug
/sig node
The text was updated successfully, but these errors were encountered: