kubernetes-sigs/cluster-api

Add machineNaming support to MachineDeploymentClass and MachineDeploymentTopology

開放

#13,540 建立於 2026年4月4日

 (5 則留言) (1 個反應) (1 位負責人)Go (1,532 個分叉)auto 404
area/apiarea/clusterclassarea/machinedeploymenthelp wantedkind/featurepriority/backlogtriage/accepted

倉庫指標

星標
 (4,267 顆星)
PR 合併指標
 (平均合併 3天 1小時) (30 天內合併 114 個 PR)

描述

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:

  • MachineNamingStrategy on MachineDeploymentSpec: #9340
  • naming / machineNaming rename: #12524
  • API consistency umbrella: #12497

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

貢獻者指南