Skip to content

Commit

Permalink
Merge pull request #6754 from hetznercloud/hetzner-missing-hostname-l…
Browse files Browse the repository at this point in the history
…abels-1.27

[v1.27] fix(hetzner): hostname label is not considered
  • Loading branch information
k8s-ci-robot authored Apr 24, 2024
2 parents aa32387 + 02c4bee commit e3188f9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,14 @@ func (n *hetznerNodeGroup) TemplateNodeInfo() (*schedulerframework.NodeInfo, err
return nil, fmt.Errorf("failed to create resource list for node group %s error: %v", n.id, err)
}

nodeName := newNodeName(n)

node := apiv1.Node{
ObjectMeta: metav1.ObjectMeta{
Name: newNodeName(n),
Labels: map[string]string{},
Name: nodeName,
Labels: map[string]string{
apiv1.LabelHostname: nodeName,
},
},
Status: apiv1.NodeStatus{
Capacity: resourceList,
Expand Down

0 comments on commit e3188f9

Please sign in to comment.