Skip to content

Commit

Permalink
Make ClusterClass generated object names consistent
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer buringerst@vmware.com
  • Loading branch information
sbueringer committed Aug 21, 2023
1 parent b820a31 commit 2706f3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controllers/topology/cluster/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ import (

// bootstrapTemplateNamePrefix calculates the name prefix for a BootstrapTemplate.
func bootstrapTemplateNamePrefix(clusterName, machineDeploymentTopologyName string) string {
return fmt.Sprintf("%s-%s-bootstrap-", clusterName, machineDeploymentTopologyName)
return fmt.Sprintf("%s-%s-", clusterName, machineDeploymentTopologyName)
}

// infrastructureMachineTemplateNamePrefix calculates the name prefix for a InfrastructureMachineTemplate.
func infrastructureMachineTemplateNamePrefix(clusterName, machineDeploymentTopologyName string) string {
return fmt.Sprintf("%s-%s-infra-", clusterName, machineDeploymentTopologyName)
return fmt.Sprintf("%s-%s-", clusterName, machineDeploymentTopologyName)
}

// infrastructureMachineTemplateNamePrefix calculates the name prefix for a InfrastructureMachineTemplate.
func controlPlaneInfrastructureMachineTemplateNamePrefix(clusterName string) string {
return fmt.Sprintf("%s-control-plane-", clusterName)
return fmt.Sprintf("%s-", clusterName)
}

// getReference gets the object referenced in ref.
Expand Down

0 comments on commit 2706f3a

Please sign in to comment.