-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
failureThreshold and timeoutSeconds parameter should be optional as per k8s doc #5732
Comments
/assign |
This seems to be coming up more often recently so we can potentially revisit the decision here, but this is purposeful. Knative Serving does not necessarily follow K8s defaults or validation. We have chosen to deviate here to enable sub-second probing by default. K8s does not allow for setting a granularity less than 1 second, but we needed to go lower and we wanted this experience by default as cold-start is critical for serverless workloads. Because we deviated here defaulting and validation logic also needed to change. |
Issues go stale after 90 days of inactivity. Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra. /lifecycle stale |
/remove-lifecycle stale |
/lifecycle frozen |
Note the properties are optional if you're defaulting into k8s style probe (ie. periodSeconds > 0) |
In what area(s)?
/area API
/kind good-first-issue
Describe the feature
Currently when create a service with below provided info
Actual Output:
Expected Output:
Should create service successfully because
failureThreshold
andtimeoutSeconds
are optional fields if don't specify should take the default values as per docBut in k8s_validation.go because check its failing.
Implementation:
Should provide a default values for
failureThreshold
andtimeoutSeconds
same like SuccessThresholdSo even if we don't specify
failureThreshold
andtimeoutSeconds
in service yaml it should create successfullyThe text was updated successfully, but these errors were encountered: