Skip to content

Commit

Permalink
Merge pull request #18 from MDZZ110/feat/edgewize-4.1
Browse files Browse the repository at this point in the history
add fakenode label for whizard to distinguish fake nodes and edge nodes
  • Loading branch information
MDZZ110 authored May 10, 2024
2 parents f63deae + ee7a455 commit c5646da
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 c5646da

Please sign in to comment.