In what area(s)?
/area API
/kind good-first-issue
/area autoscale
/area build
/area monitoring
/area networking
/area test-and-release
Describe the feature
Currently when create a service with below provided info
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: hello
spec:
template:
metadata:
name: hello-test
annotations:
spec:
containers:
- image: savita3020/helloworld
readinessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
Actual Output:
Error from server (BadRequest): error when creating "vol.yaml": admission webhook "resource.webhook.serving.knative.dev" denied the request: mutation failed: expected 1 <= 0 <= 2147483647: spec.template.spec.containers[0].readinessProbe.failureThreshold, spec.template.spec.containers[0].readinessProbe.timeoutSeconds
Expected Output:
Should create service successfully because failureThreshold and timeoutSeconds are optional fields if don't specify should take the default values as per doc
But in k8s_validation.go because check its failing.
Implementation:
Should provide a default values for failureThreshold and timeoutSeconds same like SuccessThreshold
So even if we don't specify failureThreshold and timeoutSeconds in service yaml it should create successfully
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
failureThresholdandtimeoutSecondsare 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
failureThresholdandtimeoutSecondssame like SuccessThresholdSo even if we don't specify
failureThresholdandtimeoutSecondsin service yaml it should create successfully