-
Notifications
You must be signed in to change notification settings - Fork 822
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
Failed to create or update resource longer than 63 chars #4683
Comments
Hi @XiShanYongYe-Chang that's exactly it. Anything we can help with? Happy to contribute |
I'll sort out how far this task has gone recently, and I'll give you a reply after I've sorted it out. |
@XiShanYongYe-Chang any progress ... anything that we can help with ? |
Hi @grosser, being analyzed 🔥 (Code walk-through shows that many changes are involved.) Later, I will list the current progress and to-do items and provide the analysis result as soon as possible. |
In previous versions,
This provides the basis for our subsequent use of the In addition, we added labels describing the uid in previous iterations:
The above labels need to be cleaned up. Let’s summarize the tasks we still need to deal with. After completing the following tasks, the problem described in the current issue can be solved. 1, Unify and add
3, Clean up the
4, Clean up
5, The names of PP and CPP are not allowed to exceed 63 characters. This is the verification logic of karmada-webhook: karmada/pkg/webhook/propagationpolicy/mutating.go Lines 74 to 76 in 9822d09
The reason for adding this verification is that the names of PP and CPP will appear in In the resource template and the label value of RB, this check can be removed after we solve the issue. |
awesome list, thx! |
I guess we can have a quick fix for this. The root cause is the length of the resource template name ( karmada/pkg/controllers/binding/common.go Lines 158 to 159 in ff7322a
The labels added to the workload are used for observability, we already added similar value to the annotation, so we can remove the redundant labels now. |
/assign @XiShanYongYe-Chang |
What happened:
we have a role called
kube-system/compute-controller-manager-leader-election-rolebinding
, given that karmada adds it in the label, it cannot be longer than 63 charactersWhat you expected to happen:
I would have expected to only use annotations, but not sure what should happent to the label
How to reproduce it (as minimally and precisely as possible):
compute-controller-manager-leader-election-rolebinding
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: