-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
🐛 EnqueueRequestForOwner correctly enqueue cluster-scoped owner #274
🐛 EnqueueRequestForOwner correctly enqueue cluster-scoped owner #274
Conversation
Cool. IIUC - if both the owned and owning objects are namespaced things work correctly. If both are not-namespaced things work correctly. This addresses the case where a non-namespaced object owns a namespaced object. I am curious, are there usecases for this pattern you can share? |
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.
comments inline, generally looks good
testenv = &envtest.Environment{} | ||
var err error | ||
cfg, err = testenv.Start() | ||
Expect(err).NotTo(HaveOccurred()) |
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 just extract this out onto a helper on testenv
at some point? I want to be able to call BeforeSuite(testenv.Environment{}.BeforeSuite)
or something similar.
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.
Should I create an issue to track this or is it already tracked some other place?
Changes look good. I have the same question as @pwittrock are there any use-cases for |
@pwittrock @droot #228 is the bug that I was attempting to fix.
This is the part that you might be interested in for they use case. |
667e8d5
to
8ccafa2
Compare
The change looks good to me. Will leave it to @DirectXMan12 to lgtm it. |
/lgtm |
8ccafa2
to
6cfbed3
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, shawn-hurley 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 |
I ran into this issue and upgraded to a version that includes this commit. It doesn't seem to fix the issue for me. |
@fabxc can you post a reproducer or test or something to quickly verify? |
Determines if the owner object is cluster scoped, and if it is will not use the object's namespace in the reconcile request.
To complete this, it adds dependency injection for the managers RESTMapper.