Skip to content

Commit

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

[v1.28] fix(hetzner): hostname label is not considered
  • Loading branch information
k8s-ci-robot authored Apr 24, 2024
2 parents a1e57b7 + 126765f commit 03f37df
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 03f37df

Please sign in to comment.