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
apf: change controller to use SSA for patches #110173
Conversation
/hold |
suggestions: kubernetes/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go Lines 602 to 615 in aa49dff
we probably have to remove
probably set we will need to reproduce the issue first, apply these changes and show that it fixes the issue. |
/test kubernetes-integration |
@tkashem: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions 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. |
/test pull-kubernetes-integration |
1 similar comment
/test pull-kubernetes-integration |
@tkashem - I don't think we should be trying to reproduce by running integration tests at this point. IIRC, this PR was causing panics of kube-apiserver - can you please start with checking the logs that those are not happening (or maybe rather first confirm it was the case previously)? |
Yes, I already saw the panic yesterday from the first passing integration job. I am re-running the integration test to see if it has other effects. |
/triage accepted |
/test pull-kubernetes-integration |
1 similar comment
/test pull-kubernetes-integration |
/assign @MikeSpreitzer |
@@ -462,6 +458,37 @@ func (cfgCtlr *configController) digestConfigObjects(newPLs []*flowcontrol.Prior | |||
return suggestedDelay, utilerrors.NewAggregate(errs) | |||
} | |||
|
|||
func updateOrApply(client flowcontrolclient.FlowSchemaInterface, fsu fsStatusUpdate, asFieldManager string) error { | |||
if utilfeature.DefaultFeatureGate.Enabled(features.ServerSideApply) { |
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.
@liggitt - we're generally locking GA features to true and SSA is already GA, but not locked:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/features/kube_features.go#L234
What was the reason for it?
[I'm asking because if it was locked, then we wouldn't need this conditional logic here.]
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.
cc @apelisse - I'd be in favor of locking/dropping the conditional apply gate logic
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.
Opened #112748
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.
@tkashem - this is now merged
Once the dependent PR are merged you can update this PR and get rid of this condition - this if will now always be true.
I just noticed this PR referenced in #112306 (comment) can we resolve the test flake in reset_fields_test.go and drop flowschemas from resetFieldsSkippedResources before re-enabling SSA in the APF controller? |
@liggitt are you referring to adding the Please see - #104842 (comment) |
If that was the cause of and resolution to the patch test conflict/issue, then yes would this order of operations make sense?
|
564b524
to
5f2c603
Compare
/hold depends on the following to merge: |
@tkashem : the reasons for the hold on this are gone, right? |
@MikeSpreitzer I wanted to make sure that #112575 resolves #104842 It's been a week, and https://storage.googleapis.com/k8s-triage/index.html?date=2022-10-01&job=unit&test=TestApplyResetFields yields zero result, so I am confident the flake has been resolved Also with #112748 merged, SSA is always enabled, so I removed the conditiona |
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.
/LGTM
Thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MikeSpreitzer, tkashem The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel all dependencies have merged, and search in ci yields yields zero fake |
for posterity - this LGTM. |
And thanks all for persistence in getting this done. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This brings back #107456 to see if it introduces flakes/timeouts in the integration tests
Which issue(s) this PR fixes:
Fixes #107727
Special notes for your reviewer:
Does this PR introduce a user-facing change?
-->
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: