Skip to content

Commit

Permalink
add fakenode label for whizard to distinguish fake nodes and edge nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
MDZZ110 committed May 10, 2024
1 parent f63deae commit ee7a455
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkg/controllers/resources/nodes/fake_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,13 @@ func CreateFakeNode(ctx context.Context, nodeServiceProvider nodeservice.NodeSer
ObjectMeta: metav1.ObjectMeta{
Name: name.Name,
Labels: map[string]string{
"vcluster.loft.sh/fake-node": "true",
"beta.kubernetes.io/arch": "amd64",
"beta.kubernetes.io/os": "linux",
"kubernetes.io/arch": "amd64",
"kubernetes.io/hostname": translate.SafeConcatName("fake", name.Name),
"kubernetes.io/os": "linux",
"vcluster.loft.sh/fake-node": "true",
"beta.kubernetes.io/arch": "amd64",
"beta.kubernetes.io/os": "linux",
"kubernetes.io/arch": "amd64",
"kubernetes.io/hostname": translate.SafeConcatName("fake", name.Name),
"kubernetes.io/os": "linux",
"node-role.kubernetes.io/fakenode": "",
},
Annotations: map[string]string{
"node.alpha.kubernetes.io/ttl": "0",
Expand Down

0 comments on commit ee7a455

Please sign in to comment.