Skip to content

Commit c0a6356

Browse files
committed
feat: hostname tag
1 parent 8ec01d3 commit c0a6356

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/controller/metalstackmachine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ func (r *machineReconciler) machineTags() []string {
450450
func (r *machineReconciler) additionalMachineTags(partition *models.V1PartitionResponse) []string {
451451
tags := []string{
452452
tag.New(corev1.LabelTopologyZone, r.infraCluster.Spec.Partition),
453+
tag.New(corev1.LabelHostname, r.infraMachine.Name),
453454
}
454455
if partition.Labels != nil && partition.Labels[tag.PartitionRegion] != "" {
455456
tags = append(tags, partition.Labels[tag.PartitionRegion])

0 commit comments

Comments
 (0)