mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Rename variable to ei for ExecutorInfo
This commit is contained in:
parent
4f13ba1af6
commit
12165cd6e0
@ -454,12 +454,12 @@ func newLifecycleTest(t *testing.T) lifecycleTest {
|
|||||||
// create fake apiserver
|
// create fake apiserver
|
||||||
apiServer := NewTestServer(t, api.NamespaceDefault, podsListWatch)
|
apiServer := NewTestServer(t, api.NamespaceDefault, podsListWatch)
|
||||||
|
|
||||||
// create executor with some data for static pods if set
|
// create ExecutorInfo with some data for static pods if set
|
||||||
executor := mesosutil.NewExecutorInfo(
|
ei := mesosutil.NewExecutorInfo(
|
||||||
mesosutil.NewExecutorID("executor-id"),
|
mesosutil.NewExecutorID("executor-id"),
|
||||||
mesosutil.NewCommandInfo("executor-cmd"),
|
mesosutil.NewCommandInfo("executor-cmd"),
|
||||||
)
|
)
|
||||||
executor.Data = []byte{0, 1, 2}
|
ei.Data = []byte{0, 1, 2}
|
||||||
|
|
||||||
// create scheduler
|
// create scheduler
|
||||||
strategy := NewAllocationStrategy(
|
strategy := NewAllocationStrategy(
|
||||||
@ -474,7 +474,7 @@ func newLifecycleTest(t *testing.T) lifecycleTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
scheduler := New(Config{
|
scheduler := New(Config{
|
||||||
Executor: executor,
|
Executor: ei,
|
||||||
Client: client.NewOrDie(&client.Config{
|
Client: client.NewOrDie(&client.Config{
|
||||||
Host: apiServer.server.URL,
|
Host: apiServer.server.URL,
|
||||||
Version: testapi.Default.Version(),
|
Version: testapi.Default.Version(),
|
||||||
|
Loading…
Reference in New Issue
Block a user