-
Notifications
You must be signed in to change notification settings - Fork 339
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
Potential KDS syncing problem by the resource name length #13015
Comments
Let's move the hashing for KDS to be a function in the ResourceTypeDescriptor. Lines 12 to 32 in b2b6262
Then we could remove all this with: kuma/pkg/kds/context/context.go Line 231 in 906eadd
to something like: CloneHash could then be using the defaulting interface feature: kuma/pkg/plugins/policies/donothingpolicy/api/v1alpha1/zz_generated.resource.go Lines 103 to 110 in a7cc1f4
|
On the compatibility front it "should" be alright because on upgrade KDS would remove the old one and add the new one. But this has to be checked. |
Kuma Version
master
Describe the bug
We decide to use RFC 1035 Label Names for the name validation of our resources like
Mesh
,MeshService
,MeshExternalService
,MeshMultizoneService
,Zone
. Then we'll have the length restriction for themat most 63 characters
.In our KDS system, like you create a
MeshService
resource with length 63, but the name of new syncing MS to zones could be 80 (63 + 17) which breaks the validation.To Reproduce
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-dww29994z4bd2292
Global:
Zone2
Zone3
Expected behavior
No response
Additional context (optional)
Comes from #13003 (comment)
The text was updated successfully, but these errors were encountered: