-
Notifications
You must be signed in to change notification settings - Fork 890
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
fix: cannot access ResourceRegistry with its singularName #4144
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4144 +/- ##
=======================================
Coverage 53.48% 53.48%
=======================================
Files 234 234
Lines 23304 23304
=======================================
Hits 12465 12465
- Misses 10157 10158 +1
+ Partials 682 681 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Signed-off-by: zhzhuang-zju <[email protected]>
7c16ab7
to
61302b5
Compare
Can you help post your test report? |
Certainly! ➜ karmada git:(master) ✗ kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get ResourceRegistry
NAME CREATED AT
deployment-search 2023-10-17T11:40:36Z
➜ karmada git:(master) ✗ kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get resourceregistries
NAME CREATED AT
deployment-search 2023-10-17T11:40:36Z Executing |
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.
Thanks a lot~
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: XiShanYongYe-Chang 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 |
We need to cherry-pick this patch to the previous branch, I will create an issue to track this. |
@zhzhuang-zju Have you ever thought about if this patch would block the upgrade? Can you help to confirm that? |
Nice finding! It is necessary to verify the upgrade scenario, and I‘d like to confirm it. |
…4144-upstream-release-1.5 Automated cherry pick of #4144: fix: cannot access ResourceRegistry with its singularName
…4144-upstream-release-1.6 Automated cherry pick of #4144: fix: cannot access ResourceRegistry with its singularName
…4144-upstream-release-1.7 Automated cherry pick of #4144: fix: cannot access ResourceRegistry with its singularName
I did some experiments and found that there is indeed a problem in the upgrade scenario.
3.Execute ➜ templates kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get ResourceRegistry
error: the server doesn't have a resource type "ResourceRegistry" 4.Upgrade the component ➜ karmada git:(master) ✗ kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get ResourceRegistry
No resources found It seems that it can't find the resource with ➜ karmada git:(master) ✗ kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get ResourceRegistry
NAME CREATED AT
deployment-search 2023-10-21T11:20:04Z
➜ karmada git:(master) ✗ kubectl --kubeconfig $HOME/.kube/karmada.config --context karmada-apiserver get resourceregistries
NAME CREATED AT
deployment-search 2023-10-21T11:20:04Z |
What type of PR is this?
What this PR does / why we need it:
Referring to #4141
we cannot access resource
ResourceRegistry
with itssingularName
.Which issue(s) this PR fixes:
Fixes #4141
Special notes for your reviewer:
none
Does this PR introduce a user-facing change?: