Repository navigation
Ensure old revision stays Unreachable after Knative Service update - #818
SaschaSchwarze0 wants to merge 1 commit into
Conversation
Signed-off-by: Sascha Schwarze <[email protected]>
|
Welcome @SaschaSchwarze0! It looks like this is your first PR to knative/networking 🎉 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: SaschaSchwarze0 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @SaschaSchwarze0. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/hold Let's not change the semantics of |
Changes
Fixes knative/serving#14115 by changing how
IsReadyis implemented.Currently, the
IsReadyfunction of the ServerlessService which is returning false if the generation is different in metadata and status.Due to it temporarily not being ready, the PodAutoscaler is set to SKSReady=Unknown here.
The PodAutoscaler then goes Ready=False because SKSReady is part of Ready here.
The revision inherits the PodAutoscaler status and sets Active=Unknown here.
This causes the PodAutoscaler's Reachability to be set to Unknown here.
Once the PodAutoscaler is not anymore marked as unreachable, the scaling boundary will be set to the min value from the annotation again here. This will cause a revision that is being not needed anymore to scale up again for a short moment which causes additional pods.
I am changing the
IsReadyof the ServerlessService to only check the condition. This fixes the problem and I have not seen negative impact. Though, it undos the work of IsReady should take ObservedGeneration into account #8004 which sounds to me as if it tried to resolve an abstract issue while I here have a real one. Alternative could be to leaveIsReadyunchanged und look at the condition directly in kpa.go.I need somebody with experience in this area to carefully assess if there are side-effects.
/kind bug
Release Note
Docs
None