Skip to content

NodePool and MachinePool name character limit #143

@VanillaSpoon

Description

@VanillaSpoon

Describe the Bug

Machine pool names on openshift must be under 30 characters long, whilst for NodePools on HyperShift the character limit is 15. Failing to produce a name under the character limit will prevent scaling up.

The name is generated as so within instascale:
machinePoolID := strings.ReplaceAll(aw.Name+"-"+userRequestedInstanceType, ".", "-")

This does not provide a user with feedback as to whether the name is under 30 characters when trying to scale up, and therefore may be overseen, as they can still create the appwrapper without failing.

For example, creating an appwrapper with the name: machinepool-scaleup-example
will succeed, however the machinepoolID may be set to machinepool-scaleup-example-g4dn-xlarge which will not scale as it is over the character count.

Suggestions could be to:

  • alter the ID creation method within instascale to remove this possibility
  • return an error within the sdk, as to ensure the user gets notified during the appwrapper creation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions