Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jlebon 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 |
|
Is this meant for #301 (comment)? |
|
Yup exactly! This is not strictly required in the immediate future. (I thought it'd be since I was going to make use of ownerReferences in order to fix #301, but I don't think that'll actually work). So we don't have to merge this right away. |
|
|
|
OK the first patch here looks like a fairly obvious fix; and may actually explain a failure I've seen a few times where adding a MC generates only the worker but not master pool or vice versa. Which is clearly required for upgrades and also just a general fix for MCs. Let's split that into a separate PR? |
|
Yeah, that one should be straightforward & low-risk. Split that into #321!
Hmm, I'm not sure. The only effect this fix should have is that the render controller should now keep trying to remove the pool's ownerReference from more MCs, instead of stopping at the first error. Since it's in the last thing it does in that function, the |
|
Are you sure it was broken? I'm testing right now. We know something is doing a GC, and if it's not this...then I don't know. |
Pretty sure. You can see this by just omitting the second commit in this pull. You'll see an error like: |
|
/test e2e-aws |
|
Looking at the MCC logs in the e2e-aws-op run, I don't see any errors about failing to patch the MC. So presumably with this patch we are now GC'ing them reliably. (Did you test this locally? Does it cause MCs to be reliably GC'd?) But now the problem is the lifetime will be too short. |
We weren't actually deleting the ownerReference because CRDs don't yet support strategic merges[1], which have the fancy `$patch: delete` syntax. We were also specifying the wrong PatchType argument. For now, just drop down to the vanilla JSONPatch[2] to do this. [1] https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch [2] https://tools.ietf.org/html/rfc6902 Related: openshift#301
Since something is doing that, and I want to know if it's somehow succeeding.
|
Done! Though I tweaked the wording a bit since we're still testing the idea of whether deleting the ownerReference should cause a GC. |
|
Looks like Terraform flake. |
|
/hold |
|
Doing #347 first. |
|
@jlebon: PR needs rebase. 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. |
|
#347 merged. |
|
@jlebon: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
|
In an effort to clean up the MCO repo, closing old open PRs with no activity. Feel free to reopen. |
Bug 1872080: add new okd e2e to validate okd vs. ocp content is installed
We weren't actually deleting the ownerReference because CRDs don't yet
support strategic merges[1], which have the fancy
$patch: deletesyntax. We were also specifying the wrong PatchType argument.
For now, just drop down to the vanilla JSONPatch[2] to do this.
[1] https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch
[2] https://tools.ietf.org/html/rfc6902
Related: #301