Skip to content

Commit

Permalink
align e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ishan Khare <me@ishankhare.dev>
  • Loading branch information
ishankhare07 committed Oct 3, 2023
1 parent cee27cf commit 0b300b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e_node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ var _ = ginkgo.Describe("Node sync", func() {

hostNodeLabels := make(map[string]map[string]string)
for _, node := range hostNodes.Items {
pHostname := node.Labels[corev1.LabelHostname]
pHostname += ".nodes.vcluster.com"
node.Labels[corev1.LabelHostname] = pHostname
hostNodeLabels[node.Name] = node.Labels
}

virtualNodeLabels := make(map[string]map[string]string)
for _, node := range virtualNodes.Items {
delete(node.Labels, "vcluster.loft.sh/fake-node")
virtualNodeLabels[node.Name] = node.Labels
}

Expand Down

0 comments on commit 0b300b1

Please sign in to comment.