-
Notifications
You must be signed in to change notification settings - Fork 1.2k
add initialize conditions to MakePA to avoid potential race conditions #16037
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16037 +/- ##
==========================================
- Coverage 80.20% 80.06% -0.14%
==========================================
Files 214 214
Lines 16892 16910 +18
==========================================
- Hits 13548 13539 -9
- Misses 2983 3011 +28
+ Partials 361 360 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1e94b6e to
068a084
Compare
|
/test istio-latest-no-mesh |
|
@nader-ziada PTAL - I pushed a change where I was able to move the kubebuilder tag deeper into the status. |
looks good, i kind of tried something similar to that, but got issues when deploying knative on the cluster, if this works, its cleaner |
|
I think we want this change - though I'm wondering if we should just default only I had a follow up question here: #16036 (comment) |
|
/test istio-latest-no-mesh |
replied on issue, according to my understanding here: https://github.com/knative/serving/blob/main/pkg/reconciler/revision/reconcile_resources.go#L195 |
|
/retest |
I think this is still needed because in some failure cases, the pa is nil |
58f4596 to
943fc83
Compare
|
/retest |
|
I think we should following Gateway API and on CREATE default the reason and message to 'Deploying' makes it seem like we've taken action on it when we have not. The above makes it clear that it still needs to be reconciled. |
pkg/reconciler/testing/v1/factory.go
Outdated
| manager := condSet.Manage(&pa.Status) | ||
|
|
||
| // Set each condition to Unknown with "Deploying" reason to match kubebuilder defaults | ||
| manager.MarkUnknown(autoscalingv1alpha1.PodAutoscalerConditionActive, "Deploying", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this to?
I'm surprised we didn't need to change this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll fix that, will probably need tests fixing as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. PTAL
also fix table test expections
709ce4f to
efd0538
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, nader-ziada The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
…onditions (knative#16037)" This reverts commit 12777f6.
|
follow up here: #16078 |
add initialize conditions to MakePA to avoid potential race conditions
between revision and autoscaler
Fixes #16036
Proposed Changes