mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Move Capacity from NodeSpec to NodeStatus
This commit is contained in:
@@ -185,7 +185,8 @@ func TestPathBuilder(t *testing.T) {
|
||||
func TestNodeBuilder(t *testing.T) {
|
||||
node := &api.Node{
|
||||
ObjectMeta: api.ObjectMeta{Name: "node1", Namespace: "should-not-have", ResourceVersion: "10"},
|
||||
Spec: api.NodeSpec{
|
||||
Spec: api.NodeSpec{},
|
||||
Status: api.NodeStatus{
|
||||
Capacity: api.ResourceList{
|
||||
api.ResourceCPU: resource.MustParse("1000m"),
|
||||
api.ResourceMemory: resource.MustParse("1Mi"),
|
||||
|
Reference in New Issue
Block a user