openkruise / kruise

Automated management of large-scale applications on Kubernetes (incubating project under CNCF)
https://openkruise.io
Other
4.61k stars 760 forks source link

[Request] Add a feature-gate to limit CloneSet pod name length within 63 chars or less. #1736

Open veophi opened 2 weeks ago

veophi commented 2 weeks ago

What would you like to be added:

Align the pod name limitation of CloneSet with Deployment if enable the feature-gate.

Why is this needed:

Pod name may be used as some label value that is limited within 63 chars or less..

ABNER-1 commented 2 weeks ago

@veophi There is a similar issue https://github.com/openkruise/kruise/issues/1627.

Do you think that if CloneSet supports the use of generateName to randomly generate names by api-server when the length exceeds a certain threshold, it would meet your requirements?

furykerry commented 2 weeks ago

can the pod name be saved in annotation value instead of label value?