Closed SOF3 closed 2 years ago
Turns out that there is a restriction of 6 characters in tenant ID. https://github.com/kubewharf/kubezoo/blob/a71c394bbadc4b81791138b1f0d5a4d57a34541b/pkg/util/util.go#L47 Can this be documented more clearly?
Thanks for pointing out it! We will add this restriction in the documentation. And it would be greatly appreciated if you could help improve the documentation :)
What happened?
What did you expect to happen?
Should be able to fetch pods
How can we reproduce it (as minimally and precisely as possible)?
I follow the steps in manually-setup.md
I test tenant creation with the following function:
When
tenant=111111
, this works correctlyWhen
tenant=1232408922
(4975115b in hex, which is a bit more than 2^30, still fits in the int32 bounds), the tenant kubeconfig annotation still gets populated, but last step doesn't work, with the error shown above.Then I try again with
tenant=123240
(without deleting existing tenants from previous steps), this works correctlySo I tried again with
tenant=1232408923
(the second step plus one), doesn't work againSoftware version
docker image: kubezoo/kubezoo:v0.1.0