Skip to content

Commit

Permalink
Update nokia minimum resource requirements (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi authored May 7, 2024
1 parent a88cfaf commit 4643d12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions topo/node/nokia/nokia.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@ func defaults(pb *tpb.Node) *tpb.Node {
pb.Constraints = map[string]string{}
}
if pb.Constraints["cpu"] == "" {
pb.Constraints["cpu"] = "0.5"
pb.Constraints["cpu"] = "2"
}
if pb.Constraints["memory"] == "" {
pb.Constraints["memory"] = "1Gi"
pb.Constraints["memory"] = "4Gi"
}
return pb
}
Expand Down
8 changes: 4 additions & 4 deletions topo/node/nokia/nokia_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ func TestNew(t *testing.T) {
},
},
Constraints: map[string]string{
"cpu": "0.5",
"memory": "1Gi",
"cpu": "2",
"memory": "4Gi",
},
},
}, {
Expand Down Expand Up @@ -194,8 +194,8 @@ func TestNew(t *testing.T) {
},
},
Constraints: map[string]string{
"cpu": "0.5",
"memory": "1Gi",
"cpu": "2",
"memory": "4Gi",
},
},
},
Expand Down

0 comments on commit 4643d12

Please sign in to comment.