mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
This commit is contained in:
@@ -85,7 +85,7 @@ func TestGenericScheduler(t *testing.T) {
|
||||
predicates: []FitPredicate{matchesPredicate},
|
||||
prioritizer: EqualPriority,
|
||||
nodes: []string{"machine1", "machine2"},
|
||||
pod: api.Pod{JSONBase: api.JSONBase{ID: "machine2"}},
|
||||
pod: api.Pod{TypeMeta: api.TypeMeta{ID: "machine2"}},
|
||||
expectedHost: "machine2",
|
||||
},
|
||||
{
|
||||
@@ -98,7 +98,7 @@ func TestGenericScheduler(t *testing.T) {
|
||||
predicates: []FitPredicate{matchesPredicate},
|
||||
prioritizer: numericPriority,
|
||||
nodes: []string{"3", "2", "1"},
|
||||
pod: api.Pod{JSONBase: api.JSONBase{ID: "2"}},
|
||||
pod: api.Pod{TypeMeta: api.TypeMeta{ID: "2"}},
|
||||
expectedHost: "2",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user