serving
serving copied to clipboard
Tests for multi-container readiness and liveness probes
Fixes #14869 Fixes #12480
Proposed Changes
- Remove misleading comment about multi-container Probes (they're now allowed for all containers)
- Test readiness/liveness probes with sidecars (sidecar 1: Readiness probe, sidecar 2: Liveness, sidecar 3: Readiness + Liveness)
- The final HTTP requests propagates through all the containers
- Delay Readiness for one of the sidecars
- Test for different types of probes (TCPSocket, HTTPGet+Exec, GRPC)
- Test sidecar container being ready and then going unready, checking that Endpoints are properly removed from the private service.
- For liveness probe, test happy-path scenarios for different types of probes for sidecars.
- Test liveness probe "failure" for HTTPGet probe, but only for the user-container.
Release Note
Codecov Report
Attention: Patch coverage is 0%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 84.74%. Comparing base (
c2d0af1
) to head (0a8c9ac
). Report is 91 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
pkg/testing/v1/service.go | 0.00% | 3 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #15180 +/- ##
==========================================
+ Coverage 84.11% 84.74% +0.63%
==========================================
Files 213 218 +5
Lines 16783 13472 -3311
==========================================
- Hits 14117 11417 -2700
+ Misses 2315 1688 -627
- Partials 351 367 +16
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The test for liveness probe failure was inspired by https://github.com/knative/serving/pull/12497. The issues that were blocking the original PR were either resolved (the main one) or I found a workaround (the test issue).
LGTM, I can approve once https://github.com/knative/serving/actions/runs/8965592118/job/24619389624?pr=15180 passes.
@dsimansk mind approving the above? @dprotaso is on PTO and the pkg/apis change is only a (now invalid) comment.
This PR removes an invalid comment about container probes here Multi-container probes were added in https://github.com/knative/serving/pull/14853
@dsimansk @dprotaso Could any of you approve this change? Thanks
/approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: dsimansk, mgencur, ReToCode
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [ReToCode,dsimansk]
- ~~pkg/apis/OWNERS~~ [dsimansk]
Approvers can indicate their approval by writing /approve
in a comment
Approvers can cancel approval by writing /approve cancel
in a comment