Skip to content

Add machineNaming support to MachineDeploymentClass and MachineDeploymentTopology #13540

@danylomikula

Description

@danylomikula

What would you like to be added (User Story)?

machineNaming field from MachineDeploymentSpec should be exposed in MachineDeploymentClass and MachineDeploymentTopology so topology-managed clusters can customize Machine names within MachineDeployments.

Detailed Description

machineNaming on MachineDeploymentSpec allows customizing Machine names, but the topology controller doesn't propagate it. There's no way to set it through ClusterClass or Cluster topology.

This means topology-managed MachineDeployments always produce Machine names like cluster-worker-8fh2k-xn4wp (MachineSet name + random suffix). There's no way to simplify this to e.g. cluster-worker-xn4wp.

Proposal: add machineNaming to MachineDeploymentClass with optional override in MachineDeploymentTopology, same as how naming already works for the MachineDeployment object name.

References:

Anything else you would like to add?

Same gap applies to MachinePoolClass / MachinePoolTopology.

Label(s) to be applied

/kind feature
/area clusterclass
/area machinedeployment
/area api

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIssues or PRs related to the APIsarea/clusterclassIssues or PRs related to clusterclassarea/machinedeploymentIssues or PRs related to machinedeploymentskind/featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions