eclipse-theia / theia-cloud

Eclipse Public License 2.0
61 stars 34 forks source link

Fully use resource name length for created Kubernetes resources #327

Open lucas-koehler opened 3 months ago

lucas-koehler commented 3 months ago

Follow up of #326 .

The name calculation in NamingUtil#createName(String prefix, String identifier, String user, String appDefinition, String uid) can be improved to use all available characters dependent on the length of the parameters. I.e. if a parameter is shorter than the allocated length, the remaining characters can be re-distributed to the other parameters. Furthermore, we want to use at most 57 characters for session specific objects so Kubernetes can attach 6 characters for the pod created from the deployment. For workspace related resources, we can use the full 63 characters though