diff --git a/agent/exec/dockerapi/container.go b/agent/exec/dockerapi/container.go index e777735176..9bfb92f7bd 100644 --- a/agent/exec/dockerapi/container.go +++ b/agent/exec/dockerapi/container.go @@ -18,6 +18,7 @@ import ( "github.com/docker/go-connections/nat" "github.com/docker/swarmkit/agent/exec" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/api/naming" "github.com/docker/swarmkit/template" gogotypes "github.com/gogo/protobuf/types" @@ -138,12 +139,15 @@ func (c *containerConfig) exposedPorts() map[nat.Port]struct{} { } func (c *containerConfig) config() *enginecontainer.Config { + genericEnvs := genericresource.EnvFormat(c.task.AssignedGenericResources, "DOCKER_RESOURCE") + env := append(c.spec().Env, genericEnvs...) + config := &enginecontainer.Config{ Labels: c.labels(), StopSignal: c.spec().StopSignal, User: c.spec().User, Hostname: c.spec().Hostname, - Env: c.spec().Env, + Env: env, WorkingDir: c.spec().Dir, Tty: c.spec().TTY, OpenStdin: c.spec().OpenStdin, diff --git a/agent/exec/dockerapi/controller_integration_test.go b/agent/exec/dockerapi/controller_integration_test.go index 1b437bd88a..33bb448a06 100644 --- a/agent/exec/dockerapi/controller_integration_test.go +++ b/agent/exec/dockerapi/controller_integration_test.go @@ -7,6 +7,7 @@ import ( engineapi "github.com/docker/docker/client" "github.com/docker/swarmkit/agent/exec" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/stretchr/testify/assert" "golang.org/x/net/context" ) @@ -40,6 +41,9 @@ func TestControllerFlowIntegration(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, client) + available := genericresource.NewSet("apple", "blue", "red") + available = append(available, genericresource.NewDiscrete("orange", 3)) + task := &api.Task{ ID: "dockerexec-integration-task-id", ServiceID: "dockerexec-integration-service-id", @@ -50,20 +54,24 @@ func TestControllerFlowIntegration(t *testing.T) { Spec: api.TaskSpec{ Runtime: &api.TaskSpec_Container{ Container: &api.ContainerSpec{ - Command: []string{"sh", "-c", "sleep 5; echo hello; echo stderr >&2"}, + Command: []string{"sh", "-c", "sleep 5; echo $apple $orange; echo stderr >&2"}, Image: "alpine", }, }, }, + AssignedGenericResources: available, } var receivedLogs bool publisher := exec.LogPublisherFunc(func(ctx context.Context, message api.LogMessage) error { receivedLogs = true + v1 := genericresource.Value(available[0]) + v2 := genericresource.Value(available[1]) + genericResourceString := v1 + " " + v2 + "\n" switch message.Stream { case api.LogStreamStdout: - assert.Equal(t, "hello\n", string(message.Data)) + assert.Equal(t, genericResourceString, string(message.Data)) case api.LogStreamStderr: assert.Equal(t, "stderr\n", string(message.Data)) } diff --git a/agent/exec/dockerapi/executor.go b/agent/exec/dockerapi/executor.go index f5817688ee..ec746443fe 100644 --- a/agent/exec/dockerapi/executor.go +++ b/agent/exec/dockerapi/executor.go @@ -14,15 +14,17 @@ import ( ) type executor struct { - client engineapi.APIClient - secrets exec.SecretsManager + client engineapi.APIClient + secrets exec.SecretsManager + genericResources []*api.GenericResource } // NewExecutor returns an executor from the docker client. -func NewExecutor(client engineapi.APIClient) exec.Executor { +func NewExecutor(client engineapi.APIClient, genericResources []*api.GenericResource) exec.Executor { return &executor{ - client: client, - secrets: secrets.NewManager(), + client: client, + secrets: secrets.NewManager(), + genericResources: genericResources, } } @@ -105,6 +107,7 @@ func (e *executor) Describe(ctx context.Context) (*api.NodeDescription, error) { Resources: &api.Resources{ NanoCPUs: int64(info.NCPU) * 1e9, MemoryBytes: info.MemTotal, + Generic: e.genericResources, }, } diff --git a/api/genericresource/helpers.go b/api/genericresource/helpers.go new file mode 100644 index 0000000000..f9c22ac6cc --- /dev/null +++ b/api/genericresource/helpers.go @@ -0,0 +1,111 @@ +package genericresource + +import ( + "github.com/docker/swarmkit/api" +) + +// NewSet creates a set object +func NewSet(key string, vals ...string) []*api.GenericResource { + rs := make([]*api.GenericResource, 0, len(vals)) + + for _, v := range vals { + rs = append(rs, NewString(key, v)) + } + + return rs +} + +// NewString creates a String resource +func NewString(key, val string) *api.GenericResource { + return &api.GenericResource{ + Resource: &api.GenericResource_Str{ + Str: &api.GenericString{ + Kind: key, + Value: val, + }, + }, + } +} + +// NewDiscrete creates a Discrete resource +func NewDiscrete(key string, val int64) *api.GenericResource { + return &api.GenericResource{ + Resource: &api.GenericResource_Discrete{ + Discrete: &api.GenericDiscrete{ + Kind: key, + Value: val, + }, + }, + } +} + +// GetResource returns resources from the "resources" parameter matching the kind key +func GetResource(kind string, resources []*api.GenericResource) []*api.GenericResource { + var res []*api.GenericResource + + for _, r := range resources { + if Kind(r) != kind { + continue + } + + res = append(res, r) + } + + return res +} + +// ConsumeNodeResources removes "res" from nodeAvailableResources +func ConsumeNodeResources(nodeAvailableResources *[]*api.GenericResource, res []*api.GenericResource) { + if nodeAvailableResources == nil { + return + } + + w := 0 + +loop: + for _, na := range *nodeAvailableResources { + for _, r := range res { + if Kind(na) != Kind(r) { + continue + } + + if remove(na, r) { + continue loop + } + // If this wasn't the right element then + // we need to continue + } + + (*nodeAvailableResources)[w] = na + w++ + } + + *nodeAvailableResources = (*nodeAvailableResources)[:w] +} + +// Returns true if the element is to be removed from the list +func remove(na, r *api.GenericResource) bool { + switch tr := r.Resource.(type) { + case *api.GenericResource_Discrete: + if na.GetDiscrete() == nil { + return false // Type change, ignore + } + + na.GetDiscrete().Value -= tr.Discrete.Value + if na.GetDiscrete().Value <= 0 { + return true + } + case *api.GenericResource_Str: + if na.GetStr() == nil { + return false // Type change, ignore + } + + if tr.Str.Value != na.GetStr().Value { + return false // not the right item, ignore + } + + return true + } + + return false +} diff --git a/api/genericresource/helpers_test.go b/api/genericresource/helpers_test.go new file mode 100644 index 0000000000..284f19a0ef --- /dev/null +++ b/api/genericresource/helpers_test.go @@ -0,0 +1,66 @@ +package genericresource + +import ( + "testing" + + "github.com/docker/swarmkit/api" + "github.com/stretchr/testify/assert" +) + +func TestConsumeResourcesSingle(t *testing.T) { + nodeAvailableResources := NewSet("apple", "red", "orange", "blue") + res := NewSet("apple", "red") + + ConsumeNodeResources(&nodeAvailableResources, res) + assert.Len(t, nodeAvailableResources, 2) + + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("apple", 1)) + res = []*api.GenericResource{NewDiscrete("apple", 1)} + + ConsumeNodeResources(&nodeAvailableResources, res) + assert.Len(t, nodeAvailableResources, 2) + + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("apple", 4)) + res = []*api.GenericResource{NewDiscrete("apple", 1)} + + ConsumeNodeResources(&nodeAvailableResources, res) + assert.Len(t, nodeAvailableResources, 3) + assert.Equal(t, int64(3), nodeAvailableResources[2].GetDiscrete().Value) +} + +func TestConsumeResourcesMultiple(t *testing.T) { + nodeAvailableResources := NewSet("apple", "red", "orange", "blue", "green", "yellow") + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("orange", 5)) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("banana", 3)) + nodeAvailableResources = append(nodeAvailableResources, NewSet("grape", "red", "orange", "blue", "green", "yellow")...) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("cakes", 3)) + + res := NewSet("apple", "red") + res = append(res, NewDiscrete("banana", 2)) + res = append(res, NewSet("apple", "green", "blue", "red")...) + res = append(res, NewSet("grape", "red", "blue", "red")...) + res = append(res, NewDiscrete("cakes", 3)) + + ConsumeNodeResources(&nodeAvailableResources, res) + assert.Len(t, nodeAvailableResources, 7) + + apples := GetResource("apple", nodeAvailableResources) + oranges := GetResource("orange", nodeAvailableResources) + bananas := GetResource("banana", nodeAvailableResources) + grapes := GetResource("grape", nodeAvailableResources) + assert.Len(t, apples, 2) + assert.Len(t, oranges, 1) + assert.Len(t, bananas, 1) + assert.Len(t, grapes, 3) + + for _, k := range []string{"yellow", "orange"} { + assert.True(t, HasResource(NewString("apple", k), apples)) + } + + for _, k := range []string{"yellow", "orange", "green"} { + assert.True(t, HasResource(NewString("grape", k), grapes)) + } + + assert.Equal(t, int64(5), oranges[0].GetDiscrete().Value) + assert.Equal(t, int64(1), bananas[0].GetDiscrete().Value) +} diff --git a/api/genericresource/parse.go b/api/genericresource/parse.go new file mode 100644 index 0000000000..de30908104 --- /dev/null +++ b/api/genericresource/parse.go @@ -0,0 +1,47 @@ +package genericresource + +import ( + "fmt" + "strconv" + "strings" + + "github.com/docker/swarmkit/api" +) + +func newParseError(format string, args ...interface{}) error { + return fmt.Errorf("could not parse GenericResource: "+format, args...) +} + +// Parse parses the GenericResource resources given by the arguments +func Parse(cmd string) ([]*api.GenericResource, error) { + var rs []*api.GenericResource + + for _, term := range strings.Split(cmd, ";") { + kva := strings.Split(term, "=") + if len(kva) != 2 { + return nil, newParseError("incorrect term %s, missing '=' or malformed expr", term) + } + + key := strings.TrimSpace(kva[0]) + val := strings.TrimSpace(kva[1]) + + u, err := strconv.ParseInt(val, 10, 64) + if err == nil { + if u < 0 { + return nil, newParseError("cannot ask for negative resource %s", key) + } + rs = append(rs, NewDiscrete(key, u)) + continue + } + + if len(val) > 2 && val[0] == '{' && val[len(val)-1] == '}' { + val = val[1 : len(val)-1] + rs = append(rs, NewSet(key, strings.Split(val, ",")...)...) + continue + } + + return nil, newParseError("could not parse expression '%s'", term) + } + + return rs, nil +} diff --git a/api/genericresource/parse_test.go b/api/genericresource/parse_test.go new file mode 100644 index 0000000000..fbe6885b0b --- /dev/null +++ b/api/genericresource/parse_test.go @@ -0,0 +1,45 @@ +package genericresource + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestParseDiscrete(t *testing.T) { + res, err := Parse("apple=3") + assert.NoError(t, err) + assert.Equal(t, len(res), 1) + + apples := GetResource("apple", res) + assert.Equal(t, len(apples), 1) + assert.Equal(t, apples[0].GetDiscrete().Value, int64(3)) +} + +func TestParseStr(t *testing.T) { + res, err := Parse("orange={red,green,blue}") + assert.NoError(t, err) + assert.Equal(t, len(res), 3) + + oranges := GetResource("orange", res) + assert.Equal(t, len(oranges), 3) + for _, k := range []string{"red", "green", "blue"} { + assert.True(t, HasResource(NewString("orange", k), oranges)) + } +} + +func TestParseDiscreteAndStr(t *testing.T) { + res, err := Parse("orange={red,green,blue};apple=3") + assert.NoError(t, err) + assert.Equal(t, len(res), 4) + + oranges := GetResource("orange", res) + assert.Equal(t, len(oranges), 3) + for _, k := range []string{"red", "green", "blue"} { + assert.True(t, HasResource(NewString("orange", k), oranges)) + } + + apples := GetResource("apple", res) + assert.Equal(t, len(apples), 1) + assert.Equal(t, apples[0].GetDiscrete().Value, int64(3)) +} diff --git a/api/genericresource/resource_management.go b/api/genericresource/resource_management.go new file mode 100644 index 0000000000..217c52051a --- /dev/null +++ b/api/genericresource/resource_management.go @@ -0,0 +1,202 @@ +package genericresource + +import ( + "fmt" + "github.com/docker/swarmkit/api" +) + +// Claim assigns GenericResources to a task by taking them from the +// node's GenericResource list and storing them in the task's available list +func Claim(nodeAvailableResources, taskAssigned *[]*api.GenericResource, + taskReservations []*api.GenericResource) error { + var resSelected []*api.GenericResource + + for _, res := range taskReservations { + tr := res.GetDiscrete() + if tr == nil { + return fmt.Errorf("task should only hold Discrete type") + } + + // Select the resources + nrs, err := selectNodeResources(*nodeAvailableResources, tr) + if err != nil { + return err + } + + resSelected = append(resSelected, nrs...) + } + + ClaimResources(nodeAvailableResources, taskAssigned, resSelected) + return nil +} + +// ClaimResources adds the specified resources to the task's list +// and removes them from the node's generic resource list +func ClaimResources(nodeAvailableResources, taskAssigned *[]*api.GenericResource, + resSelected []*api.GenericResource) { + *taskAssigned = append(*taskAssigned, resSelected...) + ConsumeNodeResources(nodeAvailableResources, resSelected) +} + +func selectNodeResources(nodeRes []*api.GenericResource, + tr *api.GenericDiscrete) ([]*api.GenericResource, error) { + var nrs []*api.GenericResource + + for _, res := range nodeRes { + if Kind(res) != tr.Kind { + continue + } + + switch nr := res.Resource.(type) { + case *api.GenericResource_Discrete: + if nr.Discrete.Value >= tr.Value && tr.Value != 0 { + nrs = append(nrs, NewDiscrete(tr.Kind, tr.Value)) + } + + return nrs, nil + case *api.GenericResource_Str: + nrs = append(nrs, res.Copy()) + + if int64(len(nrs)) == tr.Value { + return nrs, nil + } + } + } + + if len(nrs) == 0 { + return nil, fmt.Errorf("not enough resources available for task reservations: %+v", tr) + } + + return nrs, nil +} + +// Reclaim adds the resources taken by the task to the node's store +func Reclaim(nodeAvailableResources *[]*api.GenericResource, taskAssigned, nodeRes []*api.GenericResource) error { + err := reclaimResources(nodeAvailableResources, taskAssigned) + if err != nil { + return err + } + + sanitize(nodeRes, nodeAvailableResources) + + return nil +} + +func reclaimResources(nodeAvailableResources *[]*api.GenericResource, taskAssigned []*api.GenericResource) error { + // The node could have been updated + if nodeAvailableResources == nil { + return fmt.Errorf("node no longer has any resources") + } + + for _, res := range taskAssigned { + switch tr := res.Resource.(type) { + case *api.GenericResource_Discrete: + nrs := GetResource(tr.Discrete.Kind, *nodeAvailableResources) + + // If the resource went down to 0 it's no longer in the + // available list + if len(nrs) == 0 { + *nodeAvailableResources = append(*nodeAvailableResources, res.Copy()) + } + + if len(nrs) != 1 { + continue // Type change + } + + nr := nrs[0].GetDiscrete() + if nr == nil { + continue // Type change + } + + nr.Value += tr.Discrete.Value + case *api.GenericResource_Str: + *nodeAvailableResources = append(*nodeAvailableResources, res.Copy()) + } + } + + return nil +} + +// sanitize checks that nodeAvailableResources does not add resources unknown +// to the nodeSpec (nodeRes) or goes over the integer bound specified +// by the spec. +// Note this is because the user is able to update a node's resources +func sanitize(nodeRes []*api.GenericResource, nodeAvailableResources *[]*api.GenericResource) { + // - We add the sanitized resources at the end, after + // having removed the elements from the list + + // - When a set changes to a Discrete we also need + // to make sure that we don't add the Discrete multiple + // time hence, the need of a map to remember that + var sanitized []*api.GenericResource + kindSanitized := make(map[string]struct{}) + w := 0 + + for _, na := range *nodeAvailableResources { + ok, nrs := sanitizeResource(nodeRes, na) + if !ok { + if _, ok = kindSanitized[Kind(na)]; ok { + continue + } + + kindSanitized[Kind(na)] = struct{}{} + sanitized = append(sanitized, nrs...) + + continue + } + + (*nodeAvailableResources)[w] = na + w++ + } + + *nodeAvailableResources = (*nodeAvailableResources)[:w] + *nodeAvailableResources = append(*nodeAvailableResources, sanitized...) +} + +// Returns true if the element is in nodeRes and "sane" +// Returns false if the element isn't in nodeRes and "sane" and the element(s) that should be replacing it +func sanitizeResource(nodeRes []*api.GenericResource, res *api.GenericResource) (ok bool, nrs []*api.GenericResource) { + switch na := res.Resource.(type) { + case *api.GenericResource_Discrete: + nrs := GetResource(na.Discrete.Kind, nodeRes) + + // Type change or removed: reset + if len(nrs) != 1 { + return false, nrs + } + + // Type change: reset + nr := nrs[0].GetDiscrete() + if nr == nil { + return false, nrs + } + + // Amount change: reset + if na.Discrete.Value > nr.Value { + return false, nrs + } + case *api.GenericResource_Str: + nrs := GetResource(na.Str.Kind, nodeRes) + + // Type change + if len(nrs) == 0 { + return false, nrs + } + + for _, nr := range nrs { + // Type change: reset + if nr.GetDiscrete() != nil { + return false, nrs + } + + if na.Str.Value == nr.GetStr().Value { + return true, nil + } + } + + // Removed + return false, nil + } + + return true, nil +} diff --git a/api/genericresource/resource_management_test.go b/api/genericresource/resource_management_test.go new file mode 100644 index 0000000000..5a62659021 --- /dev/null +++ b/api/genericresource/resource_management_test.go @@ -0,0 +1,374 @@ +package genericresource + +import ( + "testing" + + "github.com/docker/swarmkit/api" + "github.com/stretchr/testify/assert" +) + +func TestClaimSingleDiscrete(t *testing.T) { + var nodeRes, taskAssigned, taskReservations []*api.GenericResource + + nodeRes = append(nodeRes, NewDiscrete("apple", 3)) + taskReservations = append(taskReservations, NewDiscrete("apple", 2)) + + err := Claim(&nodeRes, &taskAssigned, taskReservations) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 1) + assert.Len(t, taskAssigned, 1) + + assert.Equal(t, int64(1), nodeRes[0].GetDiscrete().Value) + assert.Equal(t, int64(2), taskAssigned[0].GetDiscrete().Value) +} + +func TestClaimMultipleDiscrete(t *testing.T) { + var nodeRes, taskAssigned, taskReservations []*api.GenericResource + + nodeRes = append(nodeRes, NewDiscrete("apple", 3)) + nodeRes = append(nodeRes, NewDiscrete("orange", 4)) + nodeRes = append(nodeRes, NewDiscrete("banana", 2)) + nodeRes = append(nodeRes, NewDiscrete("cake", 1)) + + // cake and banana should not be taken + taskReservations = append(taskReservations, NewDiscrete("orange", 4)) + taskReservations = append(taskReservations, NewDiscrete("apple", 2)) + + err := Claim(&nodeRes, &taskAssigned, taskReservations) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 3) // oranges isn't present anymore + assert.Len(t, taskAssigned, 2) + + apples := GetResource("apple", taskAssigned) + oranges := GetResource("orange", taskAssigned) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 1) + + assert.Equal(t, int64(2), apples[0].GetDiscrete().Value) + assert.Equal(t, int64(4), oranges[0].GetDiscrete().Value) +} + +func TestClaimSingleStr(t *testing.T) { + var nodeRes, taskAssigned, taskReservations []*api.GenericResource + + nodeRes = append(nodeRes, NewSet("apple", "red", "orange", "blue", "green")...) + taskReservations = append(taskReservations, NewDiscrete("apple", 2)) + + err := Claim(&nodeRes, &taskAssigned, taskReservations) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 2) + assert.Len(t, taskAssigned, 2) + + for _, k := range []string{"red", "orange"} { + assert.True(t, HasResource(NewString("apple", k), taskAssigned)) + } +} + +func TestClaimMultipleStr(t *testing.T) { + var nodeRes, taskAssigned, taskReservations []*api.GenericResource + + nodeRes = append(nodeRes, NewSet("apple", "red", "orange", "blue", "green")...) + nodeRes = append(nodeRes, NewSet("oranges", "red", "orange", "blue", "green")...) + nodeRes = append(nodeRes, NewSet("bananas", "red", "orange", "blue", "green")...) + taskReservations = append(taskReservations, NewDiscrete("oranges", 4)) + taskReservations = append(taskReservations, NewDiscrete("apple", 2)) + + err := Claim(&nodeRes, &taskAssigned, taskReservations) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 6) + assert.Len(t, taskAssigned, 6) + + apples := GetResource("apple", taskAssigned) + for _, k := range []string{"red", "orange"} { + assert.True(t, HasResource(NewString("apple", k), apples)) + } + + oranges := GetResource("oranges", taskAssigned) + for _, k := range []string{"red", "orange", "blue", "green"} { + assert.True(t, HasResource(NewString("oranges", k), oranges)) + } +} + +func TestReclaimSingleDiscrete(t *testing.T) { + var nodeRes, taskAssigned []*api.GenericResource + + taskAssigned = append(taskAssigned, NewDiscrete("apple", 2)) + + err := reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 1) + assert.Equal(t, int64(2), nodeRes[0].GetDiscrete().Value) + + err = reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 1) + assert.Equal(t, int64(4), nodeRes[0].GetDiscrete().Value) +} + +func TestReclaimMultipleDiscrete(t *testing.T) { + var nodeRes, taskAssigned []*api.GenericResource + + nodeRes = append(nodeRes, NewDiscrete("apple", 3)) + nodeRes = append(nodeRes, NewDiscrete("banana", 2)) + + // cake and banana should not be taken + taskAssigned = append(taskAssigned, NewDiscrete("orange", 4)) + taskAssigned = append(taskAssigned, NewDiscrete("apple", 2)) + + err := reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + + assert.Len(t, nodeRes, 3) + + apples := GetResource("apple", nodeRes) + oranges := GetResource("orange", nodeRes) + bananas := GetResource("banana", nodeRes) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 1) + assert.Len(t, bananas, 1) + + assert.Equal(t, int64(5), apples[0].GetDiscrete().Value) + assert.Equal(t, int64(4), oranges[0].GetDiscrete().Value) + assert.Equal(t, int64(2), bananas[0].GetDiscrete().Value) +} + +func TestReclaimSingleStr(t *testing.T) { + var nodeRes []*api.GenericResource + taskAssigned := NewSet("apple", "red", "orange") + + err := reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + assert.Len(t, nodeRes, 2) + + for _, k := range []string{"red", "orange"} { + assert.True(t, HasResource(NewString("apple", k), nodeRes)) + } + + taskAssigned = NewSet("apple", "blue", "red") + err = reclaimResources(&nodeRes, taskAssigned) + + assert.NoError(t, err) + assert.Len(t, nodeRes, 4) + + for _, k := range []string{"red", "orange", "blue", "red"} { + assert.True(t, HasResource(NewString("apple", k), nodeRes)) + } +} + +func TestReclaimMultipleStr(t *testing.T) { + nodeRes := NewSet("orange", "green") + taskAssigned := NewSet("apple", "red", "orange") + taskAssigned = append(taskAssigned, NewSet("orange", "red", "orange")...) + + err := reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + assert.Len(t, nodeRes, 5) + + apples := GetResource("apple", nodeRes) + oranges := GetResource("orange", nodeRes) + assert.Len(t, apples, 2) + assert.Len(t, oranges, 3) + + for _, k := range []string{"red", "orange"} { + assert.True(t, HasResource(NewString("apple", k), apples)) + } + + for _, k := range []string{"red", "orange", "green"} { + assert.True(t, HasResource(NewString("orange", k), oranges)) + } +} + +func TestReclaimResources(t *testing.T) { + nodeRes := NewSet("orange", "green", "blue") + nodeRes = append(nodeRes, NewDiscrete("apple", 3)) + nodeRes = append(nodeRes, NewSet("banana", "red", "orange", "green")...) + nodeRes = append(nodeRes, NewDiscrete("cake", 2)) + + taskAssigned := NewSet("orange", "red", "orange") + taskAssigned = append(taskAssigned, NewSet("grape", "red", "orange")...) + taskAssigned = append(taskAssigned, NewDiscrete("apple", 3)) + taskAssigned = append(taskAssigned, NewDiscrete("coffe", 2)) + + err := reclaimResources(&nodeRes, taskAssigned) + assert.NoError(t, err) + assert.Len(t, nodeRes, 12) + + apples := GetResource("apple", nodeRes) + oranges := GetResource("orange", nodeRes) + bananas := GetResource("banana", nodeRes) + cakes := GetResource("cake", nodeRes) + grapes := GetResource("grape", nodeRes) + coffe := GetResource("coffe", nodeRes) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 4) + assert.Len(t, bananas, 3) + assert.Len(t, cakes, 1) + assert.Len(t, grapes, 2) + assert.Len(t, coffe, 1) + + assert.Equal(t, int64(6), apples[0].GetDiscrete().Value) + assert.Equal(t, int64(2), cakes[0].GetDiscrete().Value) + assert.Equal(t, int64(2), coffe[0].GetDiscrete().Value) + + for _, k := range []string{"red", "orange", "green", "blue"} { + assert.True(t, HasResource(NewString("orange", k), oranges)) + } + + for _, k := range []string{"red", "orange", "green"} { + assert.True(t, HasResource(NewString("banana", k), bananas)) + } + + for _, k := range []string{"red", "orange"} { + assert.True(t, HasResource(NewString("grape", k), grapes)) + } +} + +func TestSanitizeDiscrete(t *testing.T) { + var nodeRes, nodeAvailableResources []*api.GenericResource + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("orange", 4)) + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 0) + + nodeRes = append(nodeRes, NewDiscrete("orange", 6)) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("orange", 4)) + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, int64(4), nodeAvailableResources[0].GetDiscrete().Value) + + nodeRes[0].GetDiscrete().Value = 4 + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, int64(4), nodeAvailableResources[0].GetDiscrete().Value) + + nodeRes[0].GetDiscrete().Value = 2 + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, int64(2), nodeAvailableResources[0].GetDiscrete().Value) + + nodeRes = append(nodeRes, NewDiscrete("banana", 6)) + nodeRes = append(nodeRes, NewDiscrete("cake", 6)) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("cake", 2)) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("apple", 4)) + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("banana", 8)) + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 3) + assert.Equal(t, int64(2), nodeAvailableResources[0].GetDiscrete().Value) // oranges + assert.Equal(t, int64(2), nodeAvailableResources[1].GetDiscrete().Value) // cake + assert.Equal(t, int64(6), nodeAvailableResources[2].GetDiscrete().Value) // banana +} + +func TestSanitizeStr(t *testing.T) { + var nodeRes []*api.GenericResource + nodeAvailableResources := NewSet("apple", "red", "orange", "blue") + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 0) + + nodeAvailableResources = NewSet("apple", "red", "orange", "blue") + nodeRes = NewSet("apple", "red", "orange", "blue", "green") + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 3) + + nodeRes = NewSet("apple", "red", "orange", "blue") + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 3) + + nodeRes = NewSet("apple", "red", "orange") + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 2) +} + +func TestSanitizeChangeDiscreteToSet(t *testing.T) { + nodeRes := NewSet("apple", "red") + nodeAvailableResources := []*api.GenericResource{NewDiscrete("apple", 5)} + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, "red", nodeAvailableResources[0].GetStr().Value) + + nodeRes = NewSet("apple", "red", "orange", "green") + nodeAvailableResources = []*api.GenericResource{NewDiscrete("apple", 5)} + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 3) + + for _, k := range []string{"red", "orange", "green"} { + assert.True(t, HasResource(NewString("apple", k), nodeAvailableResources)) + } + + nodeRes = append(nodeRes, NewSet("orange", "red", "orange", "green")...) + nodeRes = append(nodeRes, NewSet("cake", "red", "orange", "green")...) + + nodeAvailableResources = NewSet("apple", "green") + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("cake", 3)) + nodeAvailableResources = append(nodeAvailableResources, NewSet("orange", "orange", "blue")...) + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 5) + + apples := GetResource("apple", nodeAvailableResources) + oranges := GetResource("orange", nodeAvailableResources) + cakes := GetResource("cake", nodeAvailableResources) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 1) + assert.Len(t, cakes, 3) + + for _, k := range []string{"green"} { + assert.True(t, HasResource(NewString("apple", k), apples)) + } + + for _, k := range []string{"orange"} { + assert.True(t, HasResource(NewString("orange", k), oranges)) + } + + for _, k := range []string{"red", "orange", "green"} { + assert.True(t, HasResource(NewString("cake", k), cakes)) + } +} + +func TestSanitizeChangeSetToDiscrete(t *testing.T) { + nodeRes := []*api.GenericResource{NewDiscrete("apple", 5)} + nodeAvailableResources := NewSet("apple", "red") + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, int64(5), nodeAvailableResources[0].GetDiscrete().Value) + + nodeRes = []*api.GenericResource{NewDiscrete("apple", 5)} + nodeAvailableResources = NewSet("apple", "red", "orange", "green") + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 1) + assert.Equal(t, int64(5), nodeAvailableResources[0].GetDiscrete().Value) + + nodeRes = append(nodeRes, NewDiscrete("orange", 3)) + nodeRes = append(nodeRes, NewDiscrete("cake", 1)) + + nodeAvailableResources = append(nodeAvailableResources, NewDiscrete("cake", 2)) + nodeAvailableResources = append(nodeAvailableResources, NewSet("orange", "orange", "blue")...) + + sanitize(nodeRes, &nodeAvailableResources) + assert.Len(t, nodeAvailableResources, 3) + + apples := GetResource("apple", nodeAvailableResources) + oranges := GetResource("orange", nodeAvailableResources) + cakes := GetResource("cake", nodeAvailableResources) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 1) + assert.Len(t, cakes, 1) + + assert.Equal(t, int64(5), apples[0].GetDiscrete().Value) + assert.Equal(t, int64(3), oranges[0].GetDiscrete().Value) + assert.Equal(t, int64(1), cakes[0].GetDiscrete().Value) +} diff --git a/api/genericresource/string.go b/api/genericresource/string.go new file mode 100644 index 0000000000..a353853135 --- /dev/null +++ b/api/genericresource/string.go @@ -0,0 +1,54 @@ +package genericresource + +import ( + "strconv" + "strings" + + "github.com/docker/swarmkit/api" +) + +func discreteToString(d *api.GenericResource_Discrete) string { + return strconv.FormatInt(d.Discrete.Value, 10) +} + +// Kind returns the kind key as a string +func Kind(res *api.GenericResource) string { + switch r := res.Resource.(type) { + case *api.GenericResource_Discrete: + return r.Discrete.Kind + case *api.GenericResource_Str: + return r.Str.Kind + } + + return "" +} + +// Value returns the value key as a string +func Value(res *api.GenericResource) string { + switch res := res.Resource.(type) { + case *api.GenericResource_Discrete: + return discreteToString(res) + case *api.GenericResource_Str: + return res.Str.Value + } + + return "" +} + +// EnvFormat returns the environment string version of the resource +func EnvFormat(res []*api.GenericResource, prefix string) []string { + envs := make(map[string][]string) + for _, v := range res { + key := Kind(v) + val := Value(v) + envs[key] = append(envs[key], val) + } + + env := make([]string, 0, len(res)) + for k, v := range envs { + k = strings.ToUpper(prefix + "_" + k) + env = append(env, k+"="+strings.Join(v, ",")) + } + + return env +} diff --git a/api/genericresource/validate.go b/api/genericresource/validate.go new file mode 100644 index 0000000000..98953e107d --- /dev/null +++ b/api/genericresource/validate.go @@ -0,0 +1,84 @@ +package genericresource + +import ( + "fmt" + "github.com/docker/swarmkit/api" +) + +// ValidateTask validates that the task only uses integers +// for generic resources +func ValidateTask(resources *api.Resources) error { + for _, v := range resources.Generic { + if v.GetDiscrete() != nil { + continue + } + + return fmt.Errorf("invalid argument for resource %s", Kind(v)) + } + + return nil +} + +// HasEnough returns true if node can satisfy the task's GenericResource request +func HasEnough(nodeRes []*api.GenericResource, taskRes *api.GenericResource) (bool, error) { + t := taskRes.GetDiscrete() + if t == nil { + return false, fmt.Errorf("task should only hold Discrete type") + } + + if nodeRes == nil { + return false, nil + } + + nrs := GetResource(t.Kind, nodeRes) + if len(nrs) == 0 { + return false, nil + } + + switch nr := nrs[0].Resource.(type) { + case *api.GenericResource_Discrete: + if t.Value > nr.Discrete.Value { + return false, nil + } + case *api.GenericResource_Str: + if t.Value > int64(len(nrs)) { + return false, nil + } + } + + return true, nil +} + +// HasResource checks if there is enough "res" in the "resources" argument +func HasResource(res *api.GenericResource, resources []*api.GenericResource) bool { + for _, r := range resources { + if Kind(res) != Kind(r) { + continue + } + + switch rtype := r.Resource.(type) { + case *api.GenericResource_Discrete: + if res.GetDiscrete() == nil { + return false + } + + if res.GetDiscrete().Value < rtype.Discrete.Value { + return false + } + + return true + case *api.GenericResource_Str: + if res.GetStr() == nil { + return false + } + + if res.GetStr().Value != rtype.Str.Value { + continue + } + + return true + } + } + + return false +} diff --git a/api/objects.pb.go b/api/objects.pb.go index e9c2438502..b6a9389a6d 100644 --- a/api/objects.pb.go +++ b/api/objects.pb.go @@ -198,7 +198,8 @@ type Task struct { // such a cluster default or policy-based value. // // If not present, the daemon's default will be used. - LogDriver *Driver `protobuf:"bytes,13,opt,name=log_driver,json=logDriver" json:"log_driver,omitempty"` + LogDriver *Driver `protobuf:"bytes,13,opt,name=log_driver,json=logDriver" json:"log_driver,omitempty"` + AssignedGenericResources []*GenericResource `protobuf:"bytes,15,rep,name=assigned_generic_resources,json=assignedGenericResources" json:"assigned_generic_resources,omitempty"` } func (m *Task) Reset() { *m = Task{} } @@ -529,6 +530,14 @@ func (m *Task) CopyFrom(src interface{}) { m.LogDriver = &Driver{} github_com_docker_swarmkit_api_deepcopy.Copy(m.LogDriver, o.LogDriver) } + if o.AssignedGenericResources != nil { + m.AssignedGenericResources = make([]*GenericResource, len(o.AssignedGenericResources)) + for i := range m.AssignedGenericResources { + m.AssignedGenericResources[i] = &GenericResource{} + github_com_docker_swarmkit_api_deepcopy.Copy(m.AssignedGenericResources[i], o.AssignedGenericResources[i]) + } + } + } func (m *NetworkAttachment) Copy() *NetworkAttachment { @@ -1140,6 +1149,18 @@ func (m *Task) MarshalTo(dAtA []byte) (int, error) { } i += n26 } + if len(m.AssignedGenericResources) > 0 { + for _, msg := range m.AssignedGenericResources { + dAtA[i] = 0x7a + i++ + i = encodeVarintObjects(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } return i, nil } @@ -1771,6 +1792,12 @@ func (m *Task) Size() (n int) { l = m.SpecVersion.Size() n += 1 + l + sovObjects(uint64(l)) } + if len(m.AssignedGenericResources) > 0 { + for _, e := range m.AssignedGenericResources { + l = e.Size() + n += 1 + l + sovObjects(uint64(l)) + } + } return n } @@ -4419,6 +4446,7 @@ func (this *Task) String() string { `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Endpoint", "Endpoint", 1) + `,`, `LogDriver:` + strings.Replace(fmt.Sprintf("%v", this.LogDriver), "Driver", "Driver", 1) + `,`, `SpecVersion:` + strings.Replace(fmt.Sprintf("%v", this.SpecVersion), "Version", "Version", 1) + `,`, + `AssignedGenericResources:` + strings.Replace(fmt.Sprintf("%v", this.AssignedGenericResources), "GenericResource", "GenericResource", 1) + `,`, `}`, }, "") return s @@ -6001,6 +6029,37 @@ func (m *Task) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssignedGenericResources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowObjects + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthObjects + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssignedGenericResources = append(m.AssignedGenericResources, &GenericResource{}) + if err := m.AssignedGenericResources[len(m.AssignedGenericResources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipObjects(dAtA[iNdEx:]) @@ -7630,96 +7689,99 @@ var ( func init() { proto.RegisterFile("objects.proto", fileDescriptorObjects) } var fileDescriptorObjects = []byte{ - // 1451 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xef, 0xda, 0x1b, 0x7f, 0x3c, 0x27, 0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, 0x1a, 0x78, 0xc4, 0x55, 0x59, 0x9b, 0xc3, 0xe3, 0x79, 0xa2, 0x03, 0xcf, 0x0c, 0xc8, - 0x84, 0xcf, 0xb8, 0xb3, 0x76, 0x20, 0xd4, 0xfa, 0xb2, 0x03, 0x89, 0x46, 0xfe, 0x6d, 0x40, 0x0e, - 0x53, 0xce, 0xfa, 0xc1, 0x6b, 0xfe, 0xa4, 0x79, 0xe9, 0x59, 0x94, 0xfe, 0xcf, 0xcf, 0x22, 0x04, - 0x66, 0xd7, 0xf1, 0xf4, 0x03, 0x0e, 0xab, 0x31, 0xaa, 0x43, 0xd6, 0x27, 0x43, 0x97, 0x11, 0x5b, - 0x37, 0xca, 0xa5, 0xa9, 0xaf, 0xfe, 0x86, 0x37, 0xc4, 0x11, 0x68, 0x73, 0x69, 0xff, 0xa0, 0xb6, - 0x08, 0xc5, 0xb8, 0xe7, 0x4f, 0x8c, 0xda, 0x1f, 0x06, 0xe4, 0x77, 0xbe, 0x13, 0xd4, 0x53, 0x5f, - 0x10, 0xff, 0x4b, 0xe7, 0x57, 0xa7, 0xff, 0x19, 0xc8, 0x1f, 0xf9, 0xe8, 0x4f, 0x3a, 0xd4, 0x66, - 0xe9, 0xf9, 0x8b, 0xca, 0xb9, 0x3f, 0x5f, 0x54, 0xce, 0x7d, 0x3f, 0xaa, 0x18, 0xcf, 0x47, 0x15, - 0xe3, 0xf7, 0x51, 0xc5, 0xf8, 0x6b, 0x54, 0x31, 0xf6, 0x32, 0x2a, 0x3e, 0x1f, 0xfd, 0x1b, 0x00, - 0x00, 0xff, 0xff, 0x1b, 0x47, 0x17, 0xba, 0x5f, 0x12, 0x00, 0x00, + // 1491 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x1b, 0x4f, + 0x15, 0xef, 0xda, 0x1b, 0xff, 0x78, 0x4e, 0x4c, 0x98, 0x86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xcb, 0x39, 0xc2, + 0x12, 0x00, 0x00, } diff --git a/api/objects.proto b/api/objects.proto index 5f7cf26b7f..311c1f2fb6 100644 --- a/api/objects.proto +++ b/api/objects.proto @@ -239,6 +239,8 @@ message Task { // // If not present, the daemon's default will be used. Driver log_driver = 13; + + repeated GenericResource assigned_generic_resources = 15; } // NetworkAttachment specifies the network parameters of attachment to diff --git a/api/types.pb.go b/api/types.pb.go index 7ff65e47ca..2befc03577 100644 --- a/api/types.pb.go +++ b/api/types.pb.go @@ -23,6 +23,9 @@ Version IndexEntry Annotations + GenericString + GenericDiscrete + GenericResource Resources ResourceRequirements Platform @@ -354,7 +357,7 @@ func (x RaftMemberStatus_Reachability) String() string { return proto.EnumName(RaftMemberStatus_Reachability_name, int32(x)) } func (RaftMemberStatus_Reachability) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{10, 0} + return fileDescriptorTypes, []int{13, 0} } // TODO(aluzzardi) These should be using `gogoproto.enumvalue_customname`. @@ -387,7 +390,7 @@ var NodeStatus_State_value = map[string]int32{ func (x NodeStatus_State) String() string { return proto.EnumName(NodeStatus_State_name, int32(x)) } -func (NodeStatus_State) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{11, 0} } +func (NodeStatus_State) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{14, 0} } type Mount_MountType int32 @@ -411,7 +414,7 @@ var Mount_MountType_value = map[string]int32{ func (x Mount_MountType) String() string { return proto.EnumName(Mount_MountType_name, int32(x)) } -func (Mount_MountType) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13, 0} } +func (Mount_MountType) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16, 0} } type Mount_BindOptions_MountPropagation int32 @@ -445,7 +448,7 @@ func (x Mount_BindOptions_MountPropagation) String() string { return proto.EnumName(Mount_BindOptions_MountPropagation_name, int32(x)) } func (Mount_BindOptions_MountPropagation) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{13, 0, 0} + return fileDescriptorTypes, []int{16, 0, 0} } type RestartPolicy_RestartCondition int32 @@ -471,7 +474,7 @@ func (x RestartPolicy_RestartCondition) String() string { return proto.EnumName(RestartPolicy_RestartCondition_name, int32(x)) } func (RestartPolicy_RestartCondition) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{14, 0} + return fileDescriptorTypes, []int{17, 0} } type UpdateConfig_FailureAction int32 @@ -497,7 +500,7 @@ func (x UpdateConfig_FailureAction) String() string { return proto.EnumName(UpdateConfig_FailureAction_name, int32(x)) } func (UpdateConfig_FailureAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{15, 0} + return fileDescriptorTypes, []int{18, 0} } // UpdateOrder controls the order of operations when rolling out an @@ -524,7 +527,7 @@ func (x UpdateConfig_UpdateOrder) String() string { return proto.EnumName(UpdateConfig_UpdateOrder_name, int32(x)) } func (UpdateConfig_UpdateOrder) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{15, 1} + return fileDescriptorTypes, []int{18, 1} } type UpdateStatus_UpdateState int32 @@ -562,7 +565,7 @@ func (x UpdateStatus_UpdateState) String() string { return proto.EnumName(UpdateStatus_UpdateState_name, int32(x)) } func (UpdateStatus_UpdateState) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{16, 0} + return fileDescriptorTypes, []int{19, 0} } // AddressFamily specifies the network address family that @@ -590,7 +593,7 @@ func (x IPAMConfig_AddressFamily) String() string { return proto.EnumName(IPAMConfig_AddressFamily_name, int32(x)) } func (IPAMConfig_AddressFamily) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{21, 0} + return fileDescriptorTypes, []int{24, 0} } type PortConfig_Protocol int32 @@ -612,7 +615,7 @@ var PortConfig_Protocol_value = map[string]int32{ func (x PortConfig_Protocol) String() string { return proto.EnumName(PortConfig_Protocol_name, int32(x)) } -func (PortConfig_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{22, 0} } +func (PortConfig_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{25, 0} } // PublishMode controls how ports are published on the swarm. type PortConfig_PublishMode int32 @@ -640,7 +643,7 @@ func (x PortConfig_PublishMode) String() string { return proto.EnumName(PortConfig_PublishMode_name, int32(x)) } func (PortConfig_PublishMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{22, 1} + return fileDescriptorTypes, []int{25, 1} } type IssuanceStatus_State int32 @@ -680,7 +683,7 @@ var IssuanceStatus_State_value = map[string]int32{ func (x IssuanceStatus_State) String() string { return proto.EnumName(IssuanceStatus_State_name, int32(x)) } -func (IssuanceStatus_State) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{27, 0} } +func (IssuanceStatus_State) EnumDescriptor() ([]byte, []int) { return fileDescriptorTypes, []int{30, 0} } type ExternalCA_CAProtocol int32 @@ -699,7 +702,7 @@ func (x ExternalCA_CAProtocol) String() string { return proto.EnumName(ExternalCA_CAProtocol_name, int32(x)) } func (ExternalCA_CAProtocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{29, 0} + return fileDescriptorTypes, []int{32, 0} } // Encryption algorithm that can implemented using this key @@ -720,7 +723,7 @@ func (x EncryptionKey_Algorithm) String() string { return proto.EnumName(EncryptionKey_Algorithm_name, int32(x)) } func (EncryptionKey_Algorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{42, 0} + return fileDescriptorTypes, []int{45, 0} } type MaybeEncryptedRecord_Algorithm int32 @@ -743,7 +746,7 @@ func (x MaybeEncryptedRecord_Algorithm) String() string { return proto.EnumName(MaybeEncryptedRecord_Algorithm_name, int32(x)) } func (MaybeEncryptedRecord_Algorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{49, 0} + return fileDescriptorTypes, []int{52, 0} } // Version tracks the last time an object in the store was updated. @@ -778,16 +781,158 @@ func (m *Annotations) Reset() { *m = Annotations{} } func (*Annotations) ProtoMessage() {} func (*Annotations) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{2} } +type GenericString struct { + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *GenericString) Reset() { *m = GenericString{} } +func (*GenericString) ProtoMessage() {} +func (*GenericString) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{3} } + +type GenericDiscrete struct { + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *GenericDiscrete) Reset() { *m = GenericDiscrete{} } +func (*GenericDiscrete) ProtoMessage() {} +func (*GenericDiscrete) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{4} } + +type GenericResource struct { + // Types that are valid to be assigned to Resource: + // *GenericResource_Str + // *GenericResource_Discrete + Resource isGenericResource_Resource `protobuf_oneof:"resource"` +} + +func (m *GenericResource) Reset() { *m = GenericResource{} } +func (*GenericResource) ProtoMessage() {} +func (*GenericResource) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{5} } + +type isGenericResource_Resource interface { + isGenericResource_Resource() + MarshalTo([]byte) (int, error) + Size() int +} + +type GenericResource_Str struct { + Str *GenericString `protobuf:"bytes,1,opt,name=str,oneof"` +} +type GenericResource_Discrete struct { + Discrete *GenericDiscrete `protobuf:"bytes,2,opt,name=discrete,oneof"` +} + +func (*GenericResource_Str) isGenericResource_Resource() {} +func (*GenericResource_Discrete) isGenericResource_Resource() {} + +func (m *GenericResource) GetResource() isGenericResource_Resource { + if m != nil { + return m.Resource + } + return nil +} + +func (m *GenericResource) GetStr() *GenericString { + if x, ok := m.GetResource().(*GenericResource_Str); ok { + return x.Str + } + return nil +} + +func (m *GenericResource) GetDiscrete() *GenericDiscrete { + if x, ok := m.GetResource().(*GenericResource_Discrete); ok { + return x.Discrete + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GenericResource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _GenericResource_OneofMarshaler, _GenericResource_OneofUnmarshaler, _GenericResource_OneofSizer, []interface{}{ + (*GenericResource_Str)(nil), + (*GenericResource_Discrete)(nil), + } +} + +func _GenericResource_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GenericResource) + // resource + switch x := m.Resource.(type) { + case *GenericResource_Str: + _ = b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Str); err != nil { + return err + } + case *GenericResource_Discrete: + _ = b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Discrete); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GenericResource.Resource has unexpected type %T", x) + } + return nil +} + +func _GenericResource_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GenericResource) + switch tag { + case 1: // resource.str + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenericString) + err := b.DecodeMessage(msg) + m.Resource = &GenericResource_Str{msg} + return true, err + case 2: // resource.discrete + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenericDiscrete) + err := b.DecodeMessage(msg) + m.Resource = &GenericResource_Discrete{msg} + return true, err + default: + return false, nil + } +} + +func _GenericResource_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GenericResource) + // resource + switch x := m.Resource.(type) { + case *GenericResource_Str: + s := proto.Size(x.Str) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *GenericResource_Discrete: + s := proto.Size(x.Discrete) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + type Resources struct { // Amount of CPUs (e.g. 2000000000 = 2 CPU cores) NanoCPUs int64 `protobuf:"varint,1,opt,name=nano_cpus,json=nanoCpus,proto3" json:"nano_cpus,omitempty"` // Amount of memory in bytes. MemoryBytes int64 `protobuf:"varint,2,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` + // User specified resource (e.g: bananas=2;apple={red,yellow,green}) + Generic []*GenericResource `protobuf:"bytes,3,rep,name=generic" json:"generic,omitempty"` } func (m *Resources) Reset() { *m = Resources{} } func (*Resources) ProtoMessage() {} -func (*Resources) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{3} } +func (*Resources) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{6} } type ResourceRequirements struct { Limits *Resources `protobuf:"bytes,1,opt,name=limits" json:"limits,omitempty"` @@ -796,7 +941,7 @@ type ResourceRequirements struct { func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } func (*ResourceRequirements) ProtoMessage() {} -func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{4} } +func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{7} } type Platform struct { // Architecture (e.g. x86_64) @@ -807,7 +952,7 @@ type Platform struct { func (m *Platform) Reset() { *m = Platform{} } func (*Platform) ProtoMessage() {} -func (*Platform) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{5} } +func (*Platform) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{8} } // PluginDescription describes an engine plugin. type PluginDescription struct { @@ -821,7 +966,7 @@ type PluginDescription struct { func (m *PluginDescription) Reset() { *m = PluginDescription{} } func (*PluginDescription) ProtoMessage() {} -func (*PluginDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{6} } +func (*PluginDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{9} } type EngineDescription struct { // Docker daemon version running on the node. @@ -834,7 +979,7 @@ type EngineDescription struct { func (m *EngineDescription) Reset() { *m = EngineDescription{} } func (*EngineDescription) ProtoMessage() {} -func (*EngineDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{7} } +func (*EngineDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{10} } type NodeDescription struct { // Hostname of the node as reported by the agent. @@ -852,7 +997,7 @@ type NodeDescription struct { func (m *NodeDescription) Reset() { *m = NodeDescription{} } func (*NodeDescription) ProtoMessage() {} -func (*NodeDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{8} } +func (*NodeDescription) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{11} } type NodeTLSInfo struct { // Information about which root certs the node trusts @@ -864,7 +1009,7 @@ type NodeTLSInfo struct { func (m *NodeTLSInfo) Reset() { *m = NodeTLSInfo{} } func (*NodeTLSInfo) ProtoMessage() {} -func (*NodeTLSInfo) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{9} } +func (*NodeTLSInfo) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{12} } type RaftMemberStatus struct { Leader bool `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"` @@ -874,7 +1019,7 @@ type RaftMemberStatus struct { func (m *RaftMemberStatus) Reset() { *m = RaftMemberStatus{} } func (*RaftMemberStatus) ProtoMessage() {} -func (*RaftMemberStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{10} } +func (*RaftMemberStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13} } type NodeStatus struct { State NodeStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=docker.swarmkit.v1.NodeStatus_State" json:"state,omitempty"` @@ -885,7 +1030,7 @@ type NodeStatus struct { func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} -func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{11} } +func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{14} } type Image struct { // reference is a docker image reference. This can include a rpository, tag @@ -896,7 +1041,7 @@ type Image struct { func (m *Image) Reset() { *m = Image{} } func (*Image) ProtoMessage() {} -func (*Image) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{12} } +func (*Image) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{15} } // Mount describes volume mounts for a container. // @@ -931,7 +1076,7 @@ type Mount struct { func (m *Mount) Reset() { *m = Mount{} } func (*Mount) ProtoMessage() {} -func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13} } +func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16} } // BindOptions specifies options that are specific to a bind mount. type Mount_BindOptions struct { @@ -941,7 +1086,7 @@ type Mount_BindOptions struct { func (m *Mount_BindOptions) Reset() { *m = Mount_BindOptions{} } func (*Mount_BindOptions) ProtoMessage() {} -func (*Mount_BindOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13, 0} } +func (*Mount_BindOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16, 0} } // VolumeOptions contains parameters for mounting the volume. type Mount_VolumeOptions struct { @@ -958,7 +1103,7 @@ type Mount_VolumeOptions struct { func (m *Mount_VolumeOptions) Reset() { *m = Mount_VolumeOptions{} } func (*Mount_VolumeOptions) ProtoMessage() {} -func (*Mount_VolumeOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13, 1} } +func (*Mount_VolumeOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16, 1} } type Mount_TmpfsOptions struct { // Size sets the size of the tmpfs, in bytes. @@ -976,7 +1121,7 @@ type Mount_TmpfsOptions struct { func (m *Mount_TmpfsOptions) Reset() { *m = Mount_TmpfsOptions{} } func (*Mount_TmpfsOptions) ProtoMessage() {} -func (*Mount_TmpfsOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{13, 2} } +func (*Mount_TmpfsOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16, 2} } type RestartPolicy struct { Condition RestartPolicy_RestartCondition `protobuf:"varint,1,opt,name=condition,proto3,enum=docker.swarmkit.v1.RestartPolicy_RestartCondition" json:"condition,omitempty"` @@ -994,7 +1139,7 @@ type RestartPolicy struct { func (m *RestartPolicy) Reset() { *m = RestartPolicy{} } func (*RestartPolicy) ProtoMessage() {} -func (*RestartPolicy) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{14} } +func (*RestartPolicy) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{17} } // UpdateConfig specifies the rate and policy of updates. // TODO(aluzzardi): Consider making this a oneof with RollingStrategy and LockstepStrategy. @@ -1034,7 +1179,7 @@ type UpdateConfig struct { func (m *UpdateConfig) Reset() { *m = UpdateConfig{} } func (*UpdateConfig) ProtoMessage() {} -func (*UpdateConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{15} } +func (*UpdateConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{18} } // UpdateStatus is the status of an update in progress. type UpdateStatus struct { @@ -1058,7 +1203,7 @@ type UpdateStatus struct { func (m *UpdateStatus) Reset() { *m = UpdateStatus{} } func (*UpdateStatus) ProtoMessage() {} -func (*UpdateStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{16} } +func (*UpdateStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{19} } // Container specific status. type ContainerStatus struct { @@ -1069,7 +1214,7 @@ type ContainerStatus struct { func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } func (*ContainerStatus) ProtoMessage() {} -func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{17} } +func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{20} } // PortStatus specifies the actual allocated runtime state of a list // of port configs. @@ -1079,7 +1224,7 @@ type PortStatus struct { func (m *PortStatus) Reset() { *m = PortStatus{} } func (*PortStatus) ProtoMessage() {} -func (*PortStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{18} } +func (*PortStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{21} } type TaskStatus struct { // Note: can't use stdtime because this field is nullable. @@ -1116,7 +1261,7 @@ type TaskStatus struct { func (m *TaskStatus) Reset() { *m = TaskStatus{} } func (*TaskStatus) ProtoMessage() {} -func (*TaskStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{19} } +func (*TaskStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{22} } type isTaskStatus_RuntimeStatus interface { isTaskStatus_RuntimeStatus() @@ -1220,7 +1365,7 @@ type NetworkAttachmentConfig struct { func (m *NetworkAttachmentConfig) Reset() { *m = NetworkAttachmentConfig{} } func (*NetworkAttachmentConfig) ProtoMessage() {} -func (*NetworkAttachmentConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{20} } +func (*NetworkAttachmentConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{23} } // IPAMConfig specifies parameters for IP Address Management. type IPAMConfig struct { @@ -1241,7 +1386,7 @@ type IPAMConfig struct { func (m *IPAMConfig) Reset() { *m = IPAMConfig{} } func (*IPAMConfig) ProtoMessage() {} -func (*IPAMConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{21} } +func (*IPAMConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{24} } // PortConfig specifies an exposed port which can be // addressed using the given name. This can be later queried @@ -1267,7 +1412,7 @@ type PortConfig struct { func (m *PortConfig) Reset() { *m = PortConfig{} } func (*PortConfig) ProtoMessage() {} -func (*PortConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{22} } +func (*PortConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{25} } // Driver is a generic driver type to be used throughout the API. For now, a // driver is simply a name and set of options. The field contents depend on the @@ -1280,7 +1425,7 @@ type Driver struct { func (m *Driver) Reset() { *m = Driver{} } func (*Driver) ProtoMessage() {} -func (*Driver) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{23} } +func (*Driver) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{26} } type IPAMOptions struct { Driver *Driver `protobuf:"bytes,1,opt,name=driver" json:"driver,omitempty"` @@ -1289,7 +1434,7 @@ type IPAMOptions struct { func (m *IPAMOptions) Reset() { *m = IPAMOptions{} } func (*IPAMOptions) ProtoMessage() {} -func (*IPAMOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{24} } +func (*IPAMOptions) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{27} } // Peer should be used anywhere where we are describing a remote peer. type Peer struct { @@ -1299,7 +1444,7 @@ type Peer struct { func (m *Peer) Reset() { *m = Peer{} } func (*Peer) ProtoMessage() {} -func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{25} } +func (*Peer) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{28} } // WeightedPeer should be used anywhere where we are describing a remote peer // with a weight. @@ -1310,7 +1455,7 @@ type WeightedPeer struct { func (m *WeightedPeer) Reset() { *m = WeightedPeer{} } func (*WeightedPeer) ProtoMessage() {} -func (*WeightedPeer) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{26} } +func (*WeightedPeer) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{29} } type IssuanceStatus struct { State IssuanceStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=docker.swarmkit.v1.IssuanceStatus_State" json:"state,omitempty"` @@ -1322,7 +1467,7 @@ type IssuanceStatus struct { func (m *IssuanceStatus) Reset() { *m = IssuanceStatus{} } func (*IssuanceStatus) ProtoMessage() {} -func (*IssuanceStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{27} } +func (*IssuanceStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{30} } type AcceptancePolicy struct { Policies []*AcceptancePolicy_RoleAdmissionPolicy `protobuf:"bytes,1,rep,name=policies" json:"policies,omitempty"` @@ -1330,7 +1475,7 @@ type AcceptancePolicy struct { func (m *AcceptancePolicy) Reset() { *m = AcceptancePolicy{} } func (*AcceptancePolicy) ProtoMessage() {} -func (*AcceptancePolicy) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{28} } +func (*AcceptancePolicy) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{31} } type AcceptancePolicy_RoleAdmissionPolicy struct { Role NodeRole `protobuf:"varint,1,opt,name=role,proto3,enum=docker.swarmkit.v1.NodeRole" json:"role,omitempty"` @@ -1345,7 +1490,7 @@ type AcceptancePolicy_RoleAdmissionPolicy struct { func (m *AcceptancePolicy_RoleAdmissionPolicy) Reset() { *m = AcceptancePolicy_RoleAdmissionPolicy{} } func (*AcceptancePolicy_RoleAdmissionPolicy) ProtoMessage() {} func (*AcceptancePolicy_RoleAdmissionPolicy) Descriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{28, 0} + return fileDescriptorTypes, []int{31, 0} } type AcceptancePolicy_RoleAdmissionPolicy_Secret struct { @@ -1360,7 +1505,7 @@ func (m *AcceptancePolicy_RoleAdmissionPolicy_Secret) Reset() { } func (*AcceptancePolicy_RoleAdmissionPolicy_Secret) ProtoMessage() {} func (*AcceptancePolicy_RoleAdmissionPolicy_Secret) Descriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{28, 0, 0} + return fileDescriptorTypes, []int{31, 0, 0} } type ExternalCA struct { @@ -1377,7 +1522,7 @@ type ExternalCA struct { func (m *ExternalCA) Reset() { *m = ExternalCA{} } func (*ExternalCA) ProtoMessage() {} -func (*ExternalCA) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{29} } +func (*ExternalCA) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{32} } type CAConfig struct { // NodeCertExpiry is the duration certificates should be issued for @@ -1402,7 +1547,7 @@ type CAConfig struct { func (m *CAConfig) Reset() { *m = CAConfig{} } func (*CAConfig) ProtoMessage() {} -func (*CAConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{30} } +func (*CAConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{33} } // OrchestrationConfig defines cluster-level orchestration settings. type OrchestrationConfig struct { @@ -1413,7 +1558,7 @@ type OrchestrationConfig struct { func (m *OrchestrationConfig) Reset() { *m = OrchestrationConfig{} } func (*OrchestrationConfig) ProtoMessage() {} -func (*OrchestrationConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{31} } +func (*OrchestrationConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{34} } // TaskDefaults specifies default values for task creation. type TaskDefaults struct { @@ -1427,7 +1572,7 @@ type TaskDefaults struct { func (m *TaskDefaults) Reset() { *m = TaskDefaults{} } func (*TaskDefaults) ProtoMessage() {} -func (*TaskDefaults) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{32} } +func (*TaskDefaults) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{35} } // DispatcherConfig defines cluster-level dispatcher settings. type DispatcherConfig struct { @@ -1439,7 +1584,7 @@ type DispatcherConfig struct { func (m *DispatcherConfig) Reset() { *m = DispatcherConfig{} } func (*DispatcherConfig) ProtoMessage() {} -func (*DispatcherConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{33} } +func (*DispatcherConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{36} } // RaftConfig defines raft settings for the cluster. type RaftConfig struct { @@ -1461,7 +1606,7 @@ type RaftConfig struct { func (m *RaftConfig) Reset() { *m = RaftConfig{} } func (*RaftConfig) ProtoMessage() {} -func (*RaftConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{34} } +func (*RaftConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{37} } type EncryptionConfig struct { // AutoLockManagers specifies whether or not managers TLS keys and raft data @@ -1472,7 +1617,7 @@ type EncryptionConfig struct { func (m *EncryptionConfig) Reset() { *m = EncryptionConfig{} } func (*EncryptionConfig) ProtoMessage() {} -func (*EncryptionConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{35} } +func (*EncryptionConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{38} } type SpreadOver struct { SpreadDescriptor string `protobuf:"bytes,1,opt,name=spread_descriptor,json=spreadDescriptor,proto3" json:"spread_descriptor,omitempty"` @@ -1480,7 +1625,7 @@ type SpreadOver struct { func (m *SpreadOver) Reset() { *m = SpreadOver{} } func (*SpreadOver) ProtoMessage() {} -func (*SpreadOver) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{36} } +func (*SpreadOver) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{39} } type PlacementPreference struct { // Types that are valid to be assigned to Preference: @@ -1490,7 +1635,7 @@ type PlacementPreference struct { func (m *PlacementPreference) Reset() { *m = PlacementPreference{} } func (*PlacementPreference) ProtoMessage() {} -func (*PlacementPreference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{37} } +func (*PlacementPreference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{40} } type isPlacementPreference_Preference interface { isPlacementPreference_Preference() @@ -1589,7 +1734,7 @@ type Placement struct { func (m *Placement) Reset() { *m = Placement{} } func (*Placement) ProtoMessage() {} -func (*Placement) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{38} } +func (*Placement) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{41} } // JoinToken contains the join tokens for workers and managers. type JoinTokens struct { @@ -1601,7 +1746,7 @@ type JoinTokens struct { func (m *JoinTokens) Reset() { *m = JoinTokens{} } func (*JoinTokens) ProtoMessage() {} -func (*JoinTokens) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{39} } +func (*JoinTokens) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{42} } type RootCA struct { // CAKey is the root CA private key. @@ -1622,7 +1767,7 @@ type RootCA struct { func (m *RootCA) Reset() { *m = RootCA{} } func (*RootCA) ProtoMessage() {} -func (*RootCA) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{40} } +func (*RootCA) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{43} } type Certificate struct { Role NodeRole `protobuf:"varint,1,opt,name=role,proto3,enum=docker.swarmkit.v1.NodeRole" json:"role,omitempty"` @@ -1635,7 +1780,7 @@ type Certificate struct { func (m *Certificate) Reset() { *m = Certificate{} } func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{41} } +func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{44} } // Symmetric keys to encrypt inter-agent communication. type EncryptionKey struct { @@ -1651,7 +1796,7 @@ type EncryptionKey struct { func (m *EncryptionKey) Reset() { *m = EncryptionKey{} } func (*EncryptionKey) ProtoMessage() {} -func (*EncryptionKey) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{42} } +func (*EncryptionKey) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{45} } // ManagerStatus provides informations about the state of a manager in the cluster. type ManagerStatus struct { @@ -1668,7 +1813,7 @@ type ManagerStatus struct { func (m *ManagerStatus) Reset() { *m = ManagerStatus{} } func (*ManagerStatus) ProtoMessage() {} -func (*ManagerStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{43} } +func (*ManagerStatus) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{46} } // FileTarget represents a specific target that is backed by a file type FileTarget struct { @@ -1684,7 +1829,7 @@ type FileTarget struct { func (m *FileTarget) Reset() { *m = FileTarget{} } func (*FileTarget) ProtoMessage() {} -func (*FileTarget) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{44} } +func (*FileTarget) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{47} } // SecretReference is the linkage between a service and a secret that it uses. type SecretReference struct { @@ -1704,7 +1849,7 @@ type SecretReference struct { func (m *SecretReference) Reset() { *m = SecretReference{} } func (*SecretReference) ProtoMessage() {} -func (*SecretReference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{45} } +func (*SecretReference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{48} } type isSecretReference_Target interface { isSecretReference_Target() @@ -1804,7 +1949,7 @@ type ConfigReference struct { func (m *ConfigReference) Reset() { *m = ConfigReference{} } func (*ConfigReference) ProtoMessage() {} -func (*ConfigReference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{46} } +func (*ConfigReference) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{49} } type isConfigReference_Target interface { isConfigReference_Target() @@ -1898,7 +2043,7 @@ type BlacklistedCertificate struct { func (m *BlacklistedCertificate) Reset() { *m = BlacklistedCertificate{} } func (*BlacklistedCertificate) ProtoMessage() {} -func (*BlacklistedCertificate) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{47} } +func (*BlacklistedCertificate) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{50} } // HealthConfig holds configuration settings for the HEALTHCHECK feature. type HealthConfig struct { @@ -1928,7 +2073,7 @@ type HealthConfig struct { func (m *HealthConfig) Reset() { *m = HealthConfig{} } func (*HealthConfig) ProtoMessage() {} -func (*HealthConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{48} } +func (*HealthConfig) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{51} } type MaybeEncryptedRecord struct { Algorithm MaybeEncryptedRecord_Algorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=docker.swarmkit.v1.MaybeEncryptedRecord_Algorithm" json:"algorithm,omitempty"` @@ -1938,7 +2083,7 @@ type MaybeEncryptedRecord struct { func (m *MaybeEncryptedRecord) Reset() { *m = MaybeEncryptedRecord{} } func (*MaybeEncryptedRecord) ProtoMessage() {} -func (*MaybeEncryptedRecord) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{49} } +func (*MaybeEncryptedRecord) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{52} } type RootRotation struct { CACert []byte `protobuf:"bytes,1,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"` @@ -1949,7 +2094,7 @@ type RootRotation struct { func (m *RootRotation) Reset() { *m = RootRotation{} } func (*RootRotation) ProtoMessage() {} -func (*RootRotation) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{50} } +func (*RootRotation) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{53} } // Privileges specifies security configuration/permissions. type Privileges struct { @@ -1959,7 +2104,7 @@ type Privileges struct { func (m *Privileges) Reset() { *m = Privileges{} } func (*Privileges) ProtoMessage() {} -func (*Privileges) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{51} } +func (*Privileges) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{54} } // CredentialSpec for managed service account (Windows only). type Privileges_CredentialSpec struct { @@ -1972,7 +2117,7 @@ type Privileges_CredentialSpec struct { func (m *Privileges_CredentialSpec) Reset() { *m = Privileges_CredentialSpec{} } func (*Privileges_CredentialSpec) ProtoMessage() {} func (*Privileges_CredentialSpec) Descriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{51, 0} + return fileDescriptorTypes, []int{54, 0} } type isPrivileges_CredentialSpec_Source interface { @@ -2090,13 +2235,16 @@ type Privileges_SELinuxContext struct { func (m *Privileges_SELinuxContext) Reset() { *m = Privileges_SELinuxContext{} } func (*Privileges_SELinuxContext) ProtoMessage() {} func (*Privileges_SELinuxContext) Descriptor() ([]byte, []int) { - return fileDescriptorTypes, []int{51, 1} + return fileDescriptorTypes, []int{54, 1} } func init() { proto.RegisterType((*Version)(nil), "docker.swarmkit.v1.Version") proto.RegisterType((*IndexEntry)(nil), "docker.swarmkit.v1.IndexEntry") proto.RegisterType((*Annotations)(nil), "docker.swarmkit.v1.Annotations") + proto.RegisterType((*GenericString)(nil), "docker.swarmkit.v1.GenericString") + proto.RegisterType((*GenericDiscrete)(nil), "docker.swarmkit.v1.GenericDiscrete") + proto.RegisterType((*GenericResource)(nil), "docker.swarmkit.v1.GenericResource") proto.RegisterType((*Resources)(nil), "docker.swarmkit.v1.Resources") proto.RegisterType((*ResourceRequirements)(nil), "docker.swarmkit.v1.ResourceRequirements") proto.RegisterType((*Platform)(nil), "docker.swarmkit.v1.Platform") @@ -2231,6 +2379,68 @@ func (m *Annotations) CopyFrom(src interface{}) { } +func (m *GenericString) Copy() *GenericString { + if m == nil { + return nil + } + o := &GenericString{} + o.CopyFrom(m) + return o +} + +func (m *GenericString) CopyFrom(src interface{}) { + + o := src.(*GenericString) + *m = *o +} + +func (m *GenericDiscrete) Copy() *GenericDiscrete { + if m == nil { + return nil + } + o := &GenericDiscrete{} + o.CopyFrom(m) + return o +} + +func (m *GenericDiscrete) CopyFrom(src interface{}) { + + o := src.(*GenericDiscrete) + *m = *o +} + +func (m *GenericResource) Copy() *GenericResource { + if m == nil { + return nil + } + o := &GenericResource{} + o.CopyFrom(m) + return o +} + +func (m *GenericResource) CopyFrom(src interface{}) { + + o := src.(*GenericResource) + *m = *o + if o.Resource != nil { + switch o.Resource.(type) { + case *GenericResource_Str: + v := GenericResource_Str{ + Str: &GenericString{}, + } + github_com_docker_swarmkit_api_deepcopy.Copy(v.Str, o.GetStr()) + m.Resource = &v + case *GenericResource_Discrete: + v := GenericResource_Discrete{ + Discrete: &GenericDiscrete{}, + } + github_com_docker_swarmkit_api_deepcopy.Copy(v.Discrete, o.GetDiscrete()) + m.Resource = &v + } + } + +} + func (m *Resources) Copy() *Resources { if m == nil { return nil @@ -2244,6 +2454,14 @@ func (m *Resources) CopyFrom(src interface{}) { o := src.(*Resources) *m = *o + if o.Generic != nil { + m.Generic = make([]*GenericResource, len(o.Generic)) + for i := range m.Generic { + m.Generic[i] = &GenericResource{} + github_com_docker_swarmkit_api_deepcopy.Copy(m.Generic[i], o.Generic[i]) + } + } + } func (m *ResourceRequirements) Copy() *ResourceRequirements { @@ -3544,6 +3762,118 @@ func (m *Annotations) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *GenericString) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenericString) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Kind) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTypes(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + } + if len(m.Value) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintTypes(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + return i, nil +} + +func (m *GenericDiscrete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenericDiscrete) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Kind) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintTypes(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + } + if m.Value != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintTypes(dAtA, i, uint64(m.Value)) + } + return i, nil +} + +func (m *GenericResource) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenericResource) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Resource != nil { + nn1, err := m.Resource.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += nn1 + } + return i, nil +} + +func (m *GenericResource_Str) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.Str != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintTypes(dAtA, i, uint64(m.Str.Size())) + n2, err := m.Str.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + return i, nil +} +func (m *GenericResource_Discrete) MarshalTo(dAtA []byte) (int, error) { + i := 0 + if m.Discrete != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintTypes(dAtA, i, uint64(m.Discrete.Size())) + n3, err := m.Discrete.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + return i, nil +} func (m *Resources) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3569,6 +3899,18 @@ func (m *Resources) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintTypes(dAtA, i, uint64(m.MemoryBytes)) } + if len(m.Generic) > 0 { + for _, msg := range m.Generic { + dAtA[i] = 0x1a + i++ + i = encodeVarintTypes(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } return i, nil } @@ -3591,21 +3933,21 @@ func (m *ResourceRequirements) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Limits.Size())) - n1, err := m.Limits.MarshalTo(dAtA[i:]) + n4, err := m.Limits.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n1 + i += n4 } if m.Reservations != nil { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Reservations.Size())) - n2, err := m.Reservations.MarshalTo(dAtA[i:]) + n5, err := m.Reservations.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n2 + i += n5 } return i, nil } @@ -3748,41 +4090,41 @@ func (m *NodeDescription) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Platform.Size())) - n3, err := m.Platform.MarshalTo(dAtA[i:]) + n6, err := m.Platform.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n3 + i += n6 } if m.Resources != nil { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.Resources.Size())) - n4, err := m.Resources.MarshalTo(dAtA[i:]) + n7, err := m.Resources.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n4 + i += n7 } if m.Engine != nil { dAtA[i] = 0x22 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Engine.Size())) - n5, err := m.Engine.MarshalTo(dAtA[i:]) + n8, err := m.Engine.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n8 } if m.TLSInfo != nil { dAtA[i] = 0x2a i++ i = encodeVarintTypes(dAtA, i, uint64(m.TLSInfo.Size())) - n6, err := m.TLSInfo.MarshalTo(dAtA[i:]) + n9, err := m.TLSInfo.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n9 } return i, nil } @@ -3967,31 +4309,31 @@ func (m *Mount) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintTypes(dAtA, i, uint64(m.BindOptions.Size())) - n7, err := m.BindOptions.MarshalTo(dAtA[i:]) + n10, err := m.BindOptions.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n10 } if m.VolumeOptions != nil { dAtA[i] = 0x32 i++ i = encodeVarintTypes(dAtA, i, uint64(m.VolumeOptions.Size())) - n8, err := m.VolumeOptions.MarshalTo(dAtA[i:]) + n11, err := m.VolumeOptions.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n11 } if m.TmpfsOptions != nil { dAtA[i] = 0x3a i++ i = encodeVarintTypes(dAtA, i, uint64(m.TmpfsOptions.Size())) - n9, err := m.TmpfsOptions.MarshalTo(dAtA[i:]) + n12, err := m.TmpfsOptions.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n9 + i += n12 } return i, nil } @@ -4065,11 +4407,11 @@ func (m *Mount_VolumeOptions) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.DriverConfig.Size())) - n10, err := m.DriverConfig.MarshalTo(dAtA[i:]) + n13, err := m.DriverConfig.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n10 + i += n13 } return i, nil } @@ -4126,11 +4468,11 @@ func (m *RestartPolicy) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Delay.Size())) - n11, err := m.Delay.MarshalTo(dAtA[i:]) + n14, err := m.Delay.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n11 + i += n14 } if m.MaxAttempts != 0 { dAtA[i] = 0x18 @@ -4141,11 +4483,11 @@ func (m *RestartPolicy) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x22 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Window.Size())) - n12, err := m.Window.MarshalTo(dAtA[i:]) + n15, err := m.Window.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n15 } return i, nil } @@ -4173,11 +4515,11 @@ func (m *UpdateConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdDuration(m.Delay))) - n13, err := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Delay, dAtA[i:]) + n16, err := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Delay, dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n16 if m.FailureAction != 0 { dAtA[i] = 0x18 i++ @@ -4187,11 +4529,11 @@ func (m *UpdateConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x22 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Monitor.Size())) - n14, err := m.Monitor.MarshalTo(dAtA[i:]) + n17, err := m.Monitor.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n17 } if m.MaxFailureRatio != 0 { dAtA[i] = 0x2d @@ -4230,21 +4572,21 @@ func (m *UpdateStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.StartedAt.Size())) - n15, err := m.StartedAt.MarshalTo(dAtA[i:]) + n18, err := m.StartedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n18 } if m.CompletedAt != nil { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.CompletedAt.Size())) - n16, err := m.CompletedAt.MarshalTo(dAtA[i:]) + n19, err := m.CompletedAt.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n19 } if len(m.Message) > 0 { dAtA[i] = 0x22 @@ -4338,11 +4680,11 @@ func (m *TaskStatus) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Timestamp.Size())) - n17, err := m.Timestamp.MarshalTo(dAtA[i:]) + n20, err := m.Timestamp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n20 } if m.State != 0 { dAtA[i] = 0x10 @@ -4362,21 +4704,21 @@ func (m *TaskStatus) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Err) } if m.RuntimeStatus != nil { - nn18, err := m.RuntimeStatus.MarshalTo(dAtA[i:]) + nn21, err := m.RuntimeStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += nn18 + i += nn21 } if m.PortStatus != nil { dAtA[i] = 0x32 i++ i = encodeVarintTypes(dAtA, i, uint64(m.PortStatus.Size())) - n19, err := m.PortStatus.MarshalTo(dAtA[i:]) + n22, err := m.PortStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n19 + i += n22 } return i, nil } @@ -4387,11 +4729,11 @@ func (m *TaskStatus_Container) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintTypes(dAtA, i, uint64(m.Container.Size())) - n20, err := m.Container.MarshalTo(dAtA[i:]) + n23, err := m.Container.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n20 + i += n23 } return i, nil } @@ -4628,11 +4970,11 @@ func (m *IPAMOptions) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Driver.Size())) - n21, err := m.Driver.MarshalTo(dAtA[i:]) + n24, err := m.Driver.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n21 + i += n24 } if len(m.Configs) > 0 { for _, msg := range m.Configs { @@ -4698,11 +5040,11 @@ func (m *WeightedPeer) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Peer.Size())) - n22, err := m.Peer.MarshalTo(dAtA[i:]) + n25, err := m.Peer.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n22 + i += n25 } if m.Weight != 0 { dAtA[i] = 0x10 @@ -4805,11 +5147,11 @@ func (m *AcceptancePolicy_RoleAdmissionPolicy) MarshalTo(dAtA []byte) (int, erro dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.Secret.Size())) - n23, err := m.Secret.MarshalTo(dAtA[i:]) + n26, err := m.Secret.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n23 + i += n26 } return i, nil } @@ -4915,11 +5257,11 @@ func (m *CAConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.NodeCertExpiry.Size())) - n24, err := m.NodeCertExpiry.MarshalTo(dAtA[i:]) + n27, err := m.NodeCertExpiry.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n24 + i += n27 } if len(m.ExternalCAs) > 0 { for _, msg := range m.ExternalCAs { @@ -4995,11 +5337,11 @@ func (m *TaskDefaults) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.LogDriver.Size())) - n25, err := m.LogDriver.MarshalTo(dAtA[i:]) + n28, err := m.LogDriver.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n25 + i += n28 } return i, nil } @@ -5023,11 +5365,11 @@ func (m *DispatcherConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.HeartbeatPeriod.Size())) - n26, err := m.HeartbeatPeriod.MarshalTo(dAtA[i:]) + n29, err := m.HeartbeatPeriod.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n26 + i += n29 } return i, nil } @@ -5143,11 +5485,11 @@ func (m *PlacementPreference) MarshalTo(dAtA []byte) (int, error) { var l int _ = l if m.Preference != nil { - nn27, err := m.Preference.MarshalTo(dAtA[i:]) + nn30, err := m.Preference.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += nn27 + i += nn30 } return i, nil } @@ -5158,11 +5500,11 @@ func (m *PlacementPreference_Spread) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Spread.Size())) - n28, err := m.Spread.MarshalTo(dAtA[i:]) + n31, err := m.Spread.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n28 + i += n31 } return i, nil } @@ -5289,20 +5631,20 @@ func (m *RootCA) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x22 i++ i = encodeVarintTypes(dAtA, i, uint64(m.JoinTokens.Size())) - n29, err := m.JoinTokens.MarshalTo(dAtA[i:]) + n32, err := m.JoinTokens.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n29 + i += n32 if m.RootRotation != nil { dAtA[i] = 0x2a i++ i = encodeVarintTypes(dAtA, i, uint64(m.RootRotation.Size())) - n30, err := m.RootRotation.MarshalTo(dAtA[i:]) + n33, err := m.RootRotation.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n30 + i += n33 } if m.LastForcedRotation != 0 { dAtA[i] = 0x30 @@ -5341,11 +5683,11 @@ func (m *Certificate) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.Status.Size())) - n31, err := m.Status.MarshalTo(dAtA[i:]) + n34, err := m.Status.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n31 + i += n34 if len(m.Certificate) > 0 { dAtA[i] = 0x22 i++ @@ -5514,11 +5856,11 @@ func (m *SecretReference) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.SecretName) } if m.Target != nil { - nn32, err := m.Target.MarshalTo(dAtA[i:]) + nn35, err := m.Target.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += nn32 + i += nn35 } return i, nil } @@ -5529,11 +5871,11 @@ func (m *SecretReference_File) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.File.Size())) - n33, err := m.File.MarshalTo(dAtA[i:]) + n36, err := m.File.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n33 + i += n36 } return i, nil } @@ -5565,11 +5907,11 @@ func (m *ConfigReference) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.ConfigName) } if m.Target != nil { - nn34, err := m.Target.MarshalTo(dAtA[i:]) + nn37, err := m.Target.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += nn34 + i += nn37 } return i, nil } @@ -5580,11 +5922,11 @@ func (m *ConfigReference_File) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.File.Size())) - n35, err := m.File.MarshalTo(dAtA[i:]) + n38, err := m.File.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n35 + i += n38 } return i, nil } @@ -5607,11 +5949,11 @@ func (m *BlacklistedCertificate) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.Expiry.Size())) - n36, err := m.Expiry.MarshalTo(dAtA[i:]) + n39, err := m.Expiry.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n36 + i += n39 } return i, nil } @@ -5650,21 +5992,21 @@ func (m *HealthConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.Interval.Size())) - n37, err := m.Interval.MarshalTo(dAtA[i:]) + n40, err := m.Interval.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n37 + i += n40 } if m.Timeout != nil { dAtA[i] = 0x1a i++ i = encodeVarintTypes(dAtA, i, uint64(m.Timeout.Size())) - n38, err := m.Timeout.MarshalTo(dAtA[i:]) + n41, err := m.Timeout.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n38 + i += n41 } if m.Retries != 0 { dAtA[i] = 0x20 @@ -5675,11 +6017,11 @@ func (m *HealthConfig) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x2a i++ i = encodeVarintTypes(dAtA, i, uint64(m.StartPeriod.Size())) - n39, err := m.StartPeriod.MarshalTo(dAtA[i:]) + n42, err := m.StartPeriod.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n39 + i += n42 } return i, nil } @@ -5774,21 +6116,21 @@ func (m *Privileges) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintTypes(dAtA, i, uint64(m.CredentialSpec.Size())) - n40, err := m.CredentialSpec.MarshalTo(dAtA[i:]) + n43, err := m.CredentialSpec.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n40 + i += n43 } if m.SELinuxContext != nil { dAtA[i] = 0x12 i++ i = encodeVarintTypes(dAtA, i, uint64(m.SELinuxContext.Size())) - n41, err := m.SELinuxContext.MarshalTo(dAtA[i:]) + n44, err := m.SELinuxContext.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n41 + i += n44 } return i, nil } @@ -5809,11 +6151,11 @@ func (m *Privileges_CredentialSpec) MarshalTo(dAtA []byte) (int, error) { var l int _ = l if m.Source != nil { - nn42, err := m.Source.MarshalTo(dAtA[i:]) + nn45, err := m.Source.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += nn42 + i += nn45 } return i, nil } @@ -5961,6 +6303,60 @@ func (m *Annotations) Size() (n int) { return n } +func (m *GenericString) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + return n +} + +func (m *GenericDiscrete) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + if m.Value != 0 { + n += 1 + sovTypes(uint64(m.Value)) + } + return n +} + +func (m *GenericResource) Size() (n int) { + var l int + _ = l + if m.Resource != nil { + n += m.Resource.Size() + } + return n +} + +func (m *GenericResource_Str) Size() (n int) { + var l int + _ = l + if m.Str != nil { + l = m.Str.Size() + n += 1 + l + sovTypes(uint64(l)) + } + return n +} +func (m *GenericResource_Discrete) Size() (n int) { + var l int + _ = l + if m.Discrete != nil { + l = m.Discrete.Size() + n += 1 + l + sovTypes(uint64(l)) + } + return n +} func (m *Resources) Size() (n int) { var l int _ = l @@ -5970,6 +6366,12 @@ func (m *Resources) Size() (n int) { if m.MemoryBytes != 0 { n += 1 + sovTypes(uint64(m.MemoryBytes)) } + if len(m.Generic) > 0 { + for _, e := range m.Generic { + l = e.Size() + n += 1 + l + sovTypes(uint64(l)) + } + } return n } @@ -7056,6 +7458,58 @@ func (this *Annotations) String() string { }, "") return s } +func (this *GenericString) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GenericString{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *GenericDiscrete) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GenericDiscrete{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *GenericResource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GenericResource{`, + `Resource:` + fmt.Sprintf("%v", this.Resource) + `,`, + `}`, + }, "") + return s +} +func (this *GenericResource_Str) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GenericResource_Str{`, + `Str:` + strings.Replace(fmt.Sprintf("%v", this.Str), "GenericString", "GenericString", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GenericResource_Discrete) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GenericResource_Discrete{`, + `Discrete:` + strings.Replace(fmt.Sprintf("%v", this.Discrete), "GenericDiscrete", "GenericDiscrete", 1) + `,`, + `}`, + }, "") + return s +} func (this *Resources) String() string { if this == nil { return "nil" @@ -7063,6 +7517,7 @@ func (this *Resources) String() string { s := strings.Join([]string{`&Resources{`, `NanoCPUs:` + fmt.Sprintf("%v", this.NanoCPUs) + `,`, `MemoryBytes:` + fmt.Sprintf("%v", this.MemoryBytes) + `,`, + `Generic:` + strings.Replace(fmt.Sprintf("%v", this.Generic), "GenericResource", "GenericResource", 1) + `,`, `}`, }, "") return s @@ -8258,6 +8713,326 @@ func (m *Annotations) Unmarshal(dAtA []byte) error { } return nil } +func (m *GenericString) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenericString: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenericString: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenericDiscrete) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenericDiscrete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenericDiscrete: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GenericResource) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenericResource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenericResource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Str", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &GenericString{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Resource = &GenericResource_Str{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Discrete", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &GenericDiscrete{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Resource = &GenericResource_Discrete{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Resources) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -8325,6 +9100,37 @@ func (m *Resources) Unmarshal(dAtA []byte) error { break } } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Generic", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Generic = append(m.Generic, &GenericResource{}) + if err := m.Generic[len(m.Generic)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:]) @@ -16245,300 +17051,306 @@ var ( func init() { proto.RegisterFile("types.proto", fileDescriptorTypes) } var fileDescriptorTypes = []byte{ - // 4705 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x7a, 0x4d, 0x6c, 0x24, 0xd7, - 0x56, 0xbf, 0xfb, 0xd3, 0xdd, 0xa7, 0xdb, 0x76, 0xf9, 0x8e, 0x33, 0xf1, 0x74, 0x26, 0x76, 0xa7, - 0x92, 0x79, 0xf9, 0x78, 0xf9, 0x77, 0x66, 0x3c, 0x49, 0x34, 0x49, 0xfe, 0x2f, 0x49, 0x7f, 0x79, - 0xdc, 0x6f, 0xec, 0xee, 0xd6, 0xed, 0xf6, 0xcc, 0xcb, 0x02, 0x4a, 0xe5, 0xaa, 0xeb, 0x76, 0xc5, - 0xd5, 0x75, 0x9b, 0xaa, 0x6a, 0x7b, 0x9a, 0x07, 0x62, 0xc4, 0x02, 0x90, 0x57, 0xb0, 0x43, 0x42, - 0x66, 0x03, 0x2b, 0x84, 0xc4, 0x02, 0x24, 0x04, 0x1b, 0x82, 0xc4, 0x22, 0x3b, 0x1e, 0x20, 0xa1, - 0x27, 0x90, 0x0c, 0xf1, 0x82, 0x1d, 0x82, 0xcd, 0x13, 0x1b, 0x90, 0xd0, 0xfd, 0xa8, 0xea, 0x6a, - 0x4f, 0xd9, 0x9e, 0x90, 0xb7, 0xb1, 0xeb, 0x9e, 0xf3, 0x3b, 0xe7, 0xde, 0x7b, 0xee, 0xb9, 0xe7, - 0x9e, 0x73, 0x6f, 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4b, 0xfc, 0xe4, 0x7c, 0x2d, 0xf1, 0xaf, 0xe7, 0x6b, 0x89, 0xbd, 0x2c, - 0x0f, 0xe9, 0xf7, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x62, 0x46, 0x73, 0x55, 0x80, 0x2e, 0x00, - 0x00, + // 4808 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x7a, 0x4d, 0x6c, 0x24, 0x49, + 0x56, 0xbf, 0xeb, 0xd3, 0x55, 0xaf, 0xca, 0x76, 0x76, 0xb4, 0xb7, 0xd7, 0x5d, 0xd3, 0x63, 0xd7, + 0xe4, 0x4c, 0xef, 0x7c, 0xec, 0xfc, 0x6b, 0xba, 0xdd, 0x33, 0xa3, 0xee, 0xe9, 0xff, 0x7c, 0xd4, + 0x97, 0xdb, 0xb5, 0x6d, 0x57, 0x95, 0xa2, 0xca, 0xdd, 0x3b, 0x07, 0x48, 0xa5, 0x33, 0xc3, 0xe5, + 0x1c, 0x67, 0x65, 0x14, 0x99, 0x59, 0x76, 0x17, 0x0b, 0xa2, 0xc5, 0x01, 0x90, 0x4f, 0x70, 0x62, + 0x25, 0x64, 0x2e, 0x70, 0x42, 0x48, 0x1c, 0x40, 0x42, 0x70, 0x61, 0x90, 0x38, 0xcc, 0x8d, 0x05, + 0x24, 0xb4, 0x02, 0xc9, 0x30, 0x3e, 0x70, 0x43, 0x70, 0x59, 0x71, 0x01, 0x09, 0xc5, 0x47, 0x66, + 0x65, 0xb9, 0xd3, 0x76, 0x0f, 0xb3, 0x17, 0x3b, 0xe3, 0xbd, 0xdf, 0x7b, 0xf1, 0xe2, 0x45, 0xc4, + 0x8b, 0xf7, 0x22, 0x0a, 0x0a, 0xfe, 0x64, 0x44, 0xbc, 0xca, 0xc8, 0xa5, 0x3e, 0x45, 0xc8, 0xa4, + 0xc6, 0x01, 0x71, 0x2b, 0xde, 0x91, 0xee, 0x0e, 0x0f, 0x2c, 0xbf, 0x72, 0x78, 0xb7, 0xb4, 0x36, + 0xa0, 0x74, 0x60, 0x93, 0xf7, 0x38, 0x62, 0x77, 0xbc, 0xf7, 0x9e, 0x6f, 0x0d, 0x89, 0xe7, 0xeb, + 0xc3, 0x91, 0x10, 0x2a, 0xad, 0x9e, 0x07, 0x98, 0x63, 0x57, 0xf7, 0x2d, 0xea, 0x48, 0xfe, 0xf2, + 0x80, 0x0e, 0x28, 0xff, 0x7c, 0x8f, 0x7d, 0x09, 0xaa, 0xba, 0x06, 0xf3, 0x4f, 0x88, 0xeb, 0x59, + 0xd4, 0x41, 0xcb, 0x90, 0xb1, 0x1c, 0x93, 0x3c, 0x5b, 0x49, 0x94, 0x13, 0x6f, 0xa5, 0xb1, 0x68, + 0xa8, 0x77, 0x00, 0x5a, 0xec, 0xa3, 0xe9, 0xf8, 0xee, 0x04, 0x29, 0x90, 0x3a, 0x20, 0x13, 0x8e, + 0xc8, 0x63, 0xf6, 0xc9, 0x28, 0x87, 0xba, 0xbd, 0x92, 0x14, 0x94, 0x43, 0xdd, 0x56, 0xbf, 0x4e, + 0x40, 0xa1, 0xea, 0x38, 0xd4, 0xe7, 0xbd, 0x7b, 0x08, 0x41, 0xda, 0xd1, 0x87, 0x44, 0x0a, 0xf1, + 0x6f, 0x54, 0x87, 0xac, 0xad, 0xef, 0x12, 0xdb, 0x5b, 0x49, 0x96, 0x53, 0x6f, 0x15, 0xd6, 0xbf, + 0x5f, 0x79, 0x71, 0xc8, 0x95, 0x88, 0x92, 0xca, 0x16, 0x47, 0x73, 0x23, 0xb0, 0x14, 0x45, 0x9f, + 0xc0, 0xbc, 0xe5, 0x98, 0x96, 0x41, 0xbc, 0x95, 0x34, 0xd7, 0xb2, 0x1a, 0xa7, 0x65, 0x6a, 0x7d, + 0x2d, 0xfd, 0xd5, 0xe9, 0xda, 0x1c, 0x0e, 0x84, 0x4a, 0x0f, 0xa0, 0x10, 0x51, 0x1b, 0x33, 0xb6,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x00, 0x3b, 0x12, 0x89, 0xeb, 0xca, + 0x99, 0x67, 0x9f, 0xa8, 0xce, 0x8f, 0x05, 0xe1, 0x34, 0x99, 0x60, 0xc6, 0xde, 0x6c, 0x9c, 0x9b, + 0x91, 0xcd, 0x39, 0x3c, 0x95, 0x43, 0x9f, 0x42, 0x81, 0x8d, 0x5b, 0xf3, 0x38, 0x4f, 0xe6, 0x96, + 0x17, 0xba, 0x4a, 0x68, 0xc0, 0x30, 0x0a, 0xbf, 0x6b, 0x0a, 0x2c, 0xba, 0x63, 0x87, 0x0d, 0x5b, + 0xea, 0x50, 0xff, 0x24, 0x09, 0xdf, 0x6d, 0x13, 0xff, 0x88, 0xba, 0x07, 0x55, 0xdf, 0xd7, 0x8d, + 0xfd, 0x21, 0x71, 0xa4, 0x93, 0x23, 0x99, 0x75, 0x62, 0x26, 0xb3, 0x5e, 0x81, 0x79, 0xdd, 0xb6, + 0x74, 0x8f, 0x88, 0x74, 0x24, 0x8f, 0x83, 0x26, 0xcb, 0xff, 0x59, 0x35, 0x41, 0x3c, 0x8f, 0x88, + 0x02, 0x3f, 0x8f, 0xa7, 0x04, 0xf4, 0x23, 0xb8, 0x21, 0x13, 0x0f, 0x3d, 0xec, 0x8a, 0x65, 0xb6, + 0xc1, 0x9d, 0x5e, 0x33, 0xb6, 0xbc, 0x89, 0x37, 0x4e, 0x66, 0x26, 0x53, 0x72, 0x67, 0xe4, 0xcb, + 0x3c, 0x67, 0xd9, 0x8c, 0x61, 0x95, 0x1e, 0xc1, 0xcd, 0x0b, 0x45, 0xbe, 0xd1, 0x05, 0xc2, 0x3f, + 0x24, 0x01, 0x5a, 0xdd, 0xea, 0xb6, 0x74, 0x52, 0x03, 0xb2, 0x7b, 0xfa, 0xd0, 0xb2, 0x27, 0x97, + 0xc5, 0xa9, 0x29, 0xbe, 0x52, 0x15, 0xee, 0xd8, 0xe0, 0x32, 0x58, 0xca, 0xf2, 0xe2, 0x66, 0xbc, + 0xeb, 0x10, 0x3f,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b, 0xba, 0x43, 0xcc, 0xe9, 0x6f, 0x30, 0x42, 0xd6, 0x3b, 0xbf, 0x08, 0xb9, + 0x20, 0xcf, 0x44, 0xab, 0x90, 0x7d, 0xda, 0xc1, 0x8f, 0x9b, 0x58, 0x99, 0x13, 0x3e, 0x0c, 0x38, + 0x4f, 0x45, 0x85, 0x50, 0x86, 0xf9, 0xed, 0x6a, 0xbb, 0xfa, 0xa8, 0x89, 0x83, 0x0b, 0xef, 0x00, + 0x20, 0x93, 0xa5, 0x92, 0x22, 0x3b, 0x08, 0x75, 0xd6, 0x56, 0xbe, 0xfa, 0x7a, 0x75, 0xee, 0xa7, + 0x5f, 0xaf, 0xce, 0x3d, 0x3f, 0x5b, 0x4d, 0x7c, 0x75, 0xb6, 0x9a, 0xf8, 0xc9, 0xd9, 0x6a, 0xe2, + 0x5f, 0xcf, 0x56, 0x13, 0xbb, 0x59, 0x1e, 0xd2, 0xef, 0xfd, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xdb, 0x9d, 0xe2, 0x3d, 0xd2, 0x2f, 0x00, 0x00, } diff --git a/api/types.proto b/api/types.proto index 719b88a9c6..201bc3587f 100644 --- a/api/types.proto +++ b/api/types.proto @@ -30,12 +30,32 @@ message Annotations { repeated IndexEntry indices = 4 [(gogoproto.nullable) = false]; } +message GenericString { + string kind = 1; + string value = 2; +} + +message GenericDiscrete { + string kind = 1; + int64 value = 2; +} + +message GenericResource { + oneof resource { + GenericString str = 1; + GenericDiscrete discrete = 2; + } +} + message Resources { // Amount of CPUs (e.g. 2000000000 = 2 CPU cores) int64 nano_cpus = 1 [(gogoproto.customname) = "NanoCPUs"]; // Amount of memory in bytes. int64 memory_bytes = 2; + + // User specified resource (e.g: bananas=2;apple={red,yellow,green}) + repeated GenericResource generic = 3; } message ResourceRequirements { diff --git a/cmd/swarmctl/node/inspect.go b/cmd/swarmctl/node/inspect.go index eb4f8acebb..07c6675160 100644 --- a/cmd/swarmctl/node/inspect.go +++ b/cmd/swarmctl/node/inspect.go @@ -8,6 +8,7 @@ import ( "text/tabwriter" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/cmd/swarmctl/common" "github.com/docker/swarmkit/cmd/swarmctl/task" "github.com/dustin/go-humanize" @@ -69,6 +70,12 @@ func printNodeSummary(node *api.Node) { fmt.Fprintln(w, "Resources:\t") fmt.Fprintf(w, " CPUs\t: %d\n", desc.Resources.NanoCPUs/1e9) fmt.Fprintf(w, " Memory\t: %s\n", humanize.IBytes(uint64(desc.Resources.MemoryBytes))) + fmt.Fprintln(w, " Generic Resources:\t") + for _, r := range desc.Resources.Generic { + k := genericresource.Kind(r) + v := genericresource.Value(r) + fmt.Fprintf(w, " %s\t: %s\n", k, v) + } } if desc.Engine != nil { diff --git a/cmd/swarmctl/service/flagparser/flags.go b/cmd/swarmctl/service/flagparser/flags.go index ada350c5de..dd2c6029bd 100644 --- a/cmd/swarmctl/service/flagparser/flags.go +++ b/cmd/swarmctl/service/flagparser/flags.go @@ -32,6 +32,7 @@ func AddServiceFlags(flags *pflag.FlagSet) { flags.String("memory-limit", "", "memory limit (e.g. 512m)") flags.String("cpu-reservation", "", "number of CPU cores reserved (e.g. 0.5)") flags.String("cpu-limit", "", "CPU cores limit (e.g. 0.5)") + flags.String("generic-resources", "", "user defined resources request (e.g. gpu=3;fpga=1)") flags.Uint64("update-parallelism", 0, "task update parallelism (0 = all at once)") flags.String("update-delay", "0s", "delay between task updates (0s = none)") diff --git a/cmd/swarmctl/service/flagparser/resource.go b/cmd/swarmctl/service/flagparser/resource.go index e3cda4d2fd..e85fbec559 100644 --- a/cmd/swarmctl/service/flagparser/resource.go +++ b/cmd/swarmctl/service/flagparser/resource.go @@ -6,6 +6,7 @@ import ( "github.com/docker/go-units" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/spf13/pflag" ) @@ -91,5 +92,27 @@ func parseResource(flags *pflag.FlagSet, spec *api.ServiceSpec) error { } } + if flags.Changed("generic-resources") { + if spec.Task.Resources == nil { + spec.Task.Resources = &api.ResourceRequirements{} + } + if spec.Task.Resources.Reservations == nil { + spec.Task.Resources.Reservations = &api.Resources{} + } + + cmd, err := flags.GetString("generic-resources") + if err != nil { + return err + } + spec.Task.Resources.Reservations.Generic, err = genericresource.Parse(cmd) + if err != nil { + return err + } + err = genericresource.ValidateTask(spec.Task.Resources.Reservations) + if err != nil { + return err + } + } + return nil } diff --git a/cmd/swarmctl/service/inspect.go b/cmd/swarmctl/service/inspect.go index 074e455503..08eb57d329 100644 --- a/cmd/swarmctl/service/inspect.go +++ b/cmd/swarmctl/service/inspect.go @@ -10,6 +10,7 @@ import ( "text/tabwriter" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/cmd/swarmctl/common" "github.com/docker/swarmkit/cmd/swarmctl/task" "github.com/dustin/go-humanize" @@ -69,6 +70,16 @@ func printServiceSummary(service *api.Service, running int) { if r.MemoryBytes != 0 { fmt.Fprintf(w, " Memory\t: %s\n", humanize.IBytes(uint64(r.MemoryBytes))) } + if len(r.Generic) != 0 { + fmt.Fprintln(w, " Generic Resources\t") + } + + for _, r := range r.Generic { + k := genericresource.Kind(r) + v := genericresource.Value(r) + fmt.Fprintf(w, " %s\t: %s\n", k, v) + } + } if res.Reservations != nil { fmt.Fprintln(w, " Reservations:\t") diff --git a/cmd/swarmd/main.go b/cmd/swarmd/main.go index dc0fb4a262..a0ce7f2efb 100644 --- a/cmd/swarmd/main.go +++ b/cmd/swarmd/main.go @@ -12,6 +12,8 @@ import ( "github.com/Sirupsen/logrus" engineapi "github.com/docker/docker/client" "github.com/docker/swarmkit/agent/exec/dockerapi" + "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/cli" "github.com/docker/swarmkit/cmd/swarmd/defaults" "github.com/docker/swarmkit/log" @@ -143,6 +145,18 @@ var ( } } + var resources []*api.GenericResource + if cmd.Flags().Changed("generic-node-resources") { + genericResources, err := cmd.Flags().GetString("generic-node-resources") + if err != nil { + return err + } + resources, err = genericresource.Parse(genericResources) + if err != nil { + return err + } + } + // Create a cancellable context for our GRPC call ctx, cancel := context.WithCancel(ctx) defer cancel() @@ -152,7 +166,7 @@ var ( return err } - executor := dockerapi.NewExecutor(client) + executor := dockerapi.NewExecutor(client, resources) if debugAddr != "" { go func() { @@ -238,6 +252,7 @@ func init() { mainCmd.Flags().String("listen-debug", "", "Bind the Go debug server on the provided address") mainCmd.Flags().String("listen-metrics", "", "Listen address for metrics") mainCmd.Flags().String("join-addr", "", "Join cluster with a node at this address") + mainCmd.Flags().String("generic-node-resources", "", "user defined resources (e.g. fpga=2;gpu={UUID1,UUID2,UUID3})") mainCmd.Flags().Bool("force-new-cluster", false, "Force the creation of a new cluster from data directory") mainCmd.Flags().Uint32("heartbeat-tick", 1, "Defines the heartbeat interval (in seconds) for raft member health-check") mainCmd.Flags().Uint32("election-tick", 3, "Defines the amount of ticks (in seconds) needed without a Leader to trigger a new election") diff --git a/design/generic_resources.md b/design/generic_resources.md new file mode 100644 index 0000000000..ae7b853b37 --- /dev/null +++ b/design/generic_resources.md @@ -0,0 +1,171 @@ +# Generic Resources + + * [Abstract](#abstract) + * [Motivation](#motivation) + * [Use Cases](#use-cases) + * [Related Issues](#related-issues) + * [Objectives](#objectives) + * [Non-Objectives](#non-objectives) + * [Proposed Changes](#proposed-changes) + +## Abstract + +This document describes the a solution to managing accountable node level +resources unknown to docker swarm. + +## Motivation + +Each node is different in its own way, some nodes might have access to +accelerators, some nodes might have access to network devices and others +might support AVX while others only support SSE. +Swarmkit needs some simple way to account for these resources without having +to implement them each time a new kind of resource comes into existence. + +While it is true that some resources can be advertised with labels, many +resources have a shareable capacity and can’t be represented well as a label. + +The implementation we chose is to reuse a proven solution used by industry +projects (mesos and kubernetes) which lead us to implement two kinds +of generic resources: + * Discrete (int64) + * Set + * Other types of resource like scalar can be extended + +Discrete resources are for use cases where only an unsigned is needed to account +for the resource (see Linux Realtime). + +A set would mostly be used for every resource which would need an +exclusive access to it. + +## Constraints and Assumptions +1. Future work might require new mechanisms to be made to allow generic resources +to be cluster wide in order to satisfy other use cases (e.g: pool of licenses) +2. Future work might require to add filters at the resource level +2. Future work might require to share resources + +## Use Cases + + * Exclusive access to discrete accelerators: + * GPU devices + * FPGA devices + * MICs (Many-Integrated Core, such as Xeon Phi) + * ... + * Support for tracking additional cgroup quotas like cpu_rt_runtime. + * [Linux Realtime](https://github.com/docker/docker/pull/23430) + * PersistentDisks in GCE + * Counting “slots” allowed access to a shared parallel file system. + +## Related Issues + + * [Support abstract resource](https://github.com/docker/swarmkit/issues/594) + * [Add new node filter to scheduler](https://github.com/docker/swarm/issues/2223) + * [Add support for devices](https://github.com/docker/swarmkit/issues/1244) + * [Resource Control](https://github.com/docker/swarmkit/issues/211) + * [NVIDIA GPU support](https://github.com/docker/docker/issues/23917) + * [Does Docker have plan to support allocating GPU](https://github.com/docker/docker/issues/24582) + * [Docker Swarm to orchestrate "Swarm Cluster" which supports GPU](https://github.com/docker/docker/issues/24750) + * [Use accelerator in docker container](https://github.com/docker/docker/issues/28642) + * [Specify resource selectors](https://github.com/docker/swarmkit/issues/206) + +## Objectives + +1. Associate multiple generic resources with a node +2. Request some portion of available generic resources in the service + during service creation +3. Enable users to define and schedule generic resources in a vanilla swarmkit cluster + +## Non-Objectives + +1. Solve how generic resources allocations are to be enforced or isolated. +2. Solve how generic resources are discovered +2. Solve how to filter at the resources level +3. Solve how cluster-level generic resources should be advertised + +## Proposed Changes + +### Generic Resources request + +The services may only ask for generic resources as integers as the solution for asking for +specific resources can be solved in many different ways (filters, multiple kinds +of resources, ...) and should not be addressed in this PR. + +``` +$ # Single resource +$ swarmctl service create --name nginx --image nginx:latest --generic-resources "banana=2" +$ # Multiple resources +$ swarmctl service create --name nginx --image nginx:latest --generic-resources "banana=2;apple=3" +``` + +### Generic Resource advertising + +A node may advertise either an discrete number of resources or a set of resources. +It is the scheduler's job to decide which resource to assign and keep track of which task +owns which resource. + +``` +$ swarmd -d $DIR --join-addr $IP --join-token $TOKEN --generic-node-resources "banana={blue,red,green};apple=8" +``` + +### Generic Resource communication + +As swarmkit is not responsible for exposing the resources to the container (or acquiring them), +it needs a way to communicate how many generic resources were assigned (in the case of +discrete resources) or / and what resources were selected (in the case of sets). + +The reference implementation of the executor exposes the resource value to +software running in containers through environment variables. +The exposed environment variable is prefixed with `DOCKER_RESOURCE_` and it's key +uppercased. + +See example in the next section. + +**If we run `swarmctl inspect` we can see:** + +```bash +$ swarmctl node inspect node-with-generic-resources +ID : 9toi8u8zo1qbkiw1d1nrsevdd +Hostname : node-with-generic-resources +Status: + State : READY + Availability : ACTIVE + Address : 127.0.0.1 +Platform: + Operating System : linux + Architecture : x86_64 +Resources: + CPUs : 12 + Memory : 31 GiB + apple : 3 + banana : red, blue, green +Plugins: + Network : [bridge host macvlan null overlay] + Volume : [local nvidia-docker] +Engine Version : 1.13.1 + +$ swarmctl service create --name nginx --image nginx:latest --generic-resources "banana=2;apple=2" +$ swarmctl service inspect nginx +ID : abxelhl822d8zyjqam3m3szb0 +Name : nginx +Replicas : 1/1 +Template + Container + Image : nginx:latest + Resources + Reservations: + banana : 2 + apple : 2 + +Task ID Service Slot Image Desired State Last State Node +------- ------- ---- ----- ------------- ---------- ---- +6pbwd5qj7i0nsxlyi803qpf2x nginx 1 nginx:latest RUNNING RUNNING 12 seconds ago node-with-generic-resources + +$ # ssh to the node +$ docker inspect $CONTAINER_ID --format '{{.Config.Env}}' | tr -s ' ' '\n' +[DOCKER_RESOURCE_BANANA=2 +DOCKER_RESOURCE_APPLE=2 +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +NGINX_VERSION=1.13.0-1~stretch +NJS_VERSION=1.13.0.0.1.10-1~stretch] + + +``` diff --git a/manager/controlapi/service.go b/manager/controlapi/service.go index ecf79579c6..d556b6c0e7 100644 --- a/manager/controlapi/service.go +++ b/manager/controlapi/service.go @@ -9,6 +9,7 @@ import ( "github.com/docker/distribution/reference" "github.com/docker/swarmkit/api" "github.com/docker/swarmkit/api/defaults" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/api/naming" "github.com/docker/swarmkit/identity" "github.com/docker/swarmkit/manager/allocator" @@ -42,6 +43,9 @@ func validateResources(r *api.Resources) error { if r.MemoryBytes != 0 && r.MemoryBytes < 4*1024*1024 { return grpc.Errorf(codes.InvalidArgument, "invalid memory value %d: Must be at least 4MiB", r.MemoryBytes) } + if err := genericresource.ValidateTask(r); err != nil { + return nil + } return nil } diff --git a/manager/orchestrator/constraintenforcer/constraint_enforcer.go b/manager/orchestrator/constraintenforcer/constraint_enforcer.go index 06c34d9a21..2978898ccb 100644 --- a/manager/orchestrator/constraintenforcer/constraint_enforcer.go +++ b/manager/orchestrator/constraintenforcer/constraint_enforcer.go @@ -4,6 +4,7 @@ import ( "time" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/log" "github.com/docker/swarmkit/manager/constraint" "github.com/docker/swarmkit/manager/state" @@ -83,10 +84,11 @@ func (ce *ConstraintEnforcer) rejectNoncompliantTasks(node *api.Node) { log.L.WithError(err).Errorf("failed to list tasks for node ID %s", node.ID) } - var availableMemoryBytes, availableNanoCPUs int64 + available := &api.Resources{} + var fakeStore []*api.GenericResource + if node.Description != nil && node.Description.Resources != nil { - availableMemoryBytes = node.Description.Resources.MemoryBytes - availableNanoCPUs = node.Description.Resources.NanoCPUs + available = node.Description.Resources.Copy() } removeTasks := make(map[string]*api.Task) @@ -97,6 +99,7 @@ func (ce *ConstraintEnforcer) rejectNoncompliantTasks(node *api.Node) { // a separate pass over the tasks for each type of // resource, and sort by the size of the reservation // to remove the most resource-intensive tasks. +loop: for _, t := range tasks { if t.DesiredState < api.TaskStateAssigned || t.DesiredState > api.TaskStateRunning { continue @@ -115,16 +118,27 @@ func (ce *ConstraintEnforcer) rejectNoncompliantTasks(node *api.Node) { // Ensure that the task assigned to the node // still satisfies the resource limits. if t.Spec.Resources != nil && t.Spec.Resources.Reservations != nil { - if t.Spec.Resources.Reservations.MemoryBytes > availableMemoryBytes { + if t.Spec.Resources.Reservations.MemoryBytes > available.MemoryBytes { removeTasks[t.ID] = t continue } - if t.Spec.Resources.Reservations.NanoCPUs > availableNanoCPUs { + if t.Spec.Resources.Reservations.NanoCPUs > available.NanoCPUs { removeTasks[t.ID] = t continue } - availableMemoryBytes -= t.Spec.Resources.Reservations.MemoryBytes - availableNanoCPUs -= t.Spec.Resources.Reservations.NanoCPUs + for _, ta := range t.AssignedGenericResources { + // Type change or no longer available + if genericresource.HasResource(ta, available.Generic) { + removeTasks[t.ID] = t + break loop + } + } + + available.MemoryBytes -= t.Spec.Resources.Reservations.MemoryBytes + available.NanoCPUs -= t.Spec.Resources.Reservations.NanoCPUs + + genericresource.ClaimResources(&available.Generic, + &fakeStore, t.AssignedGenericResources) } } diff --git a/manager/scheduler/filter.go b/manager/scheduler/filter.go index 2909a648d7..e7dac56e90 100644 --- a/manager/scheduler/filter.go +++ b/manager/scheduler/filter.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/manager/constraint" ) @@ -61,9 +62,12 @@ func (f *ResourceFilter) SetTask(t *api.Task) bool { if r == nil || r.Reservations == nil { return false } - if r.Reservations.NanoCPUs == 0 && r.Reservations.MemoryBytes == 0 { + + res := r.Reservations + if res.NanoCPUs == 0 && res.MemoryBytes == 0 && len(res.Generic) == 0 { return false } + f.reservations = r.Reservations return true } @@ -78,6 +82,13 @@ func (f *ResourceFilter) Check(n *NodeInfo) bool { return false } + for _, v := range f.reservations.Generic { + enough, err := genericresource.HasEnough(n.AvailableResources.Generic, v) + if err != nil || !enough { + return false + } + } + return true } diff --git a/manager/scheduler/nodeinfo.go b/manager/scheduler/nodeinfo.go index 25b22d7b15..51322a054d 100644 --- a/manager/scheduler/nodeinfo.go +++ b/manager/scheduler/nodeinfo.go @@ -4,6 +4,7 @@ import ( "time" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/log" "golang.org/x/net/context" ) @@ -20,7 +21,7 @@ type NodeInfo struct { Tasks map[string]*api.Task ActiveTasksCount int ActiveTasksCountByService map[string]int - AvailableResources api.Resources + AvailableResources *api.Resources usedHostPorts map[hostPortSpec]struct{} // recentFailures is a map from service ID to the timestamps of the @@ -36,7 +37,7 @@ func newNodeInfo(n *api.Node, tasks map[string]*api.Task, availableResources api Node: n, Tasks: make(map[string]*api.Task), ActiveTasksCountByService: make(map[string]int), - AvailableResources: availableResources, + AvailableResources: availableResources.Copy(), usedHostPorts: make(map[hostPortSpec]struct{}), recentFailures: make(map[string][]time.Time), } @@ -44,6 +45,7 @@ func newNodeInfo(n *api.Node, tasks map[string]*api.Task, availableResources api for _, t := range tasks { nodeInfo.addTask(t) } + return nodeInfo } @@ -62,8 +64,20 @@ func (nodeInfo *NodeInfo) removeTask(t *api.Task) bool { } reservations := taskReservations(t.Spec) - nodeInfo.AvailableResources.MemoryBytes += reservations.MemoryBytes - nodeInfo.AvailableResources.NanoCPUs += reservations.NanoCPUs + resources := nodeInfo.AvailableResources + + resources.MemoryBytes += reservations.MemoryBytes + resources.NanoCPUs += reservations.NanoCPUs + + if nodeInfo.Description == nil || nodeInfo.Description.Resources == nil || + nodeInfo.Description.Resources.Generic == nil { + return true + } + + taskAssigned := t.AssignedGenericResources + nodeAvailableResources := &resources.Generic + nodeRes := nodeInfo.Description.Resources.Generic + genericresource.Reclaim(nodeAvailableResources, taskAssigned, nodeRes) if t.Endpoint != nil { for _, port := range t.Endpoint.Ports { @@ -97,9 +111,18 @@ func (nodeInfo *NodeInfo) addTask(t *api.Task) bool { } nodeInfo.Tasks[t.ID] = t + reservations := taskReservations(t.Spec) - nodeInfo.AvailableResources.MemoryBytes -= reservations.MemoryBytes - nodeInfo.AvailableResources.NanoCPUs -= reservations.NanoCPUs + resources := nodeInfo.AvailableResources + + resources.MemoryBytes -= reservations.MemoryBytes + resources.NanoCPUs -= reservations.NanoCPUs + + // minimum size required + t.AssignedGenericResources = make([]*api.GenericResource, 0, len(resources.Generic)) + taskAssigned := &t.AssignedGenericResources + + genericresource.Claim(&resources.Generic, taskAssigned, reservations.Generic) if t.Endpoint != nil { for _, port := range t.Endpoint.Ports { diff --git a/manager/scheduler/nodeinfo_test.go b/manager/scheduler/nodeinfo_test.go index f12ef87d95..b5cb5cff66 100644 --- a/manager/scheduler/nodeinfo_test.go +++ b/manager/scheduler/nodeinfo_test.go @@ -4,11 +4,23 @@ import ( "testing" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/stretchr/testify/assert" ) func TestRemoveTask(t *testing.T) { - node := &api.Node{} + nodeResourceSpec := &api.Resources{ + NanoCPUs: 100000, + MemoryBytes: 1000000, + Generic: append( + genericresource.NewSet("orange", "blue", "red", "green"), + genericresource.NewDiscrete("apple", 6), + ), + } + + node := &api.Node{ + Description: &api.NodeDescription{Resources: nodeResourceSpec}, + } tasks := map[string]*api.Task{ "task1": { @@ -19,13 +31,33 @@ func TestRemoveTask(t *testing.T) { }, } - availableResources := api.Resources{ + available := api.Resources{ NanoCPUs: 100000, MemoryBytes: 1000000, + Generic: append( + genericresource.NewSet("orange", "blue", "red"), + genericresource.NewDiscrete("apple", 5), + ), + } + + taskRes := &api.Resources{ + NanoCPUs: 5000, + MemoryBytes: 5000, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 1), + genericresource.NewDiscrete("orange", 1), + }, } task1 := &api.Task{ ID: "task1", + Spec: api.TaskSpec{ + Resources: &api.ResourceRequirements{Reservations: taskRes}, + }, + AssignedGenericResources: append( + genericresource.NewSet("orange", "green"), + genericresource.NewDiscrete("apple", 1), + ), } task3 := &api.Task{ @@ -33,15 +65,38 @@ func TestRemoveTask(t *testing.T) { } // nodeInfo has no tasks - nodeInfo := newNodeInfo(node, nil, availableResources) + nodeInfo := newNodeInfo(node, nil, available) assert.False(t, nodeInfo.removeTask(task1)) // nodeInfo's tasks has taskID - nodeInfo = newNodeInfo(node, tasks, availableResources) + nodeInfo = newNodeInfo(node, tasks, available) assert.True(t, nodeInfo.removeTask(task1)) // nodeInfo's tasks has no taskID assert.False(t, nodeInfo.removeTask(task3)) + + nodeAvailableResources := nodeInfo.AvailableResources + + cpuLeft := available.NanoCPUs + taskRes.NanoCPUs + memoryLeft := available.MemoryBytes + taskRes.MemoryBytes + + assert.Equal(t, cpuLeft, nodeAvailableResources.NanoCPUs) + assert.Equal(t, memoryLeft, nodeAvailableResources.MemoryBytes) + + assert.Equal(t, 4, len(nodeAvailableResources.Generic)) + + apples := genericresource.GetResource("apple", nodeAvailableResources.Generic) + oranges := genericresource.GetResource("orange", nodeAvailableResources.Generic) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 3) + + for _, k := range []string{"red", "blue", "green"} { + assert.True(t, genericresource.HasResource( + genericresource.NewString("orange", k), oranges), + ) + } + + assert.Equal(t, int64(6), apples[0].GetDiscrete().Value) } func TestAddTask(t *testing.T) { @@ -56,20 +111,36 @@ func TestAddTask(t *testing.T) { }, } - availableResources := api.Resources{ + task1 := &api.Task{ + ID: "task1", + } + + available := api.Resources{ NanoCPUs: 100000, MemoryBytes: 1000000, + Generic: append( + genericresource.NewSet("orange", "blue", "red"), + genericresource.NewDiscrete("apple", 5), + ), } - task1 := &api.Task{ - ID: "task1", + taskRes := &api.Resources{ + NanoCPUs: 5000, + MemoryBytes: 5000, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 2), + genericresource.NewDiscrete("orange", 1), + }, } task3 := &api.Task{ ID: "task3", + Spec: api.TaskSpec{ + Resources: &api.ResourceRequirements{Reservations: taskRes}, + }, } - nodeInfo := newNodeInfo(node, tasks, availableResources) + nodeInfo := newNodeInfo(node, tasks, available) // add task with ID existing assert.False(t, nodeInfo.addTask(task1)) @@ -80,4 +151,22 @@ func TestAddTask(t *testing.T) { // add again assert.False(t, nodeInfo.addTask(task3)) + // Check resource consumption of node + nodeAvailableResources := nodeInfo.AvailableResources + + cpuLeft := available.NanoCPUs - taskRes.NanoCPUs + memoryLeft := available.MemoryBytes - taskRes.MemoryBytes + + assert.Equal(t, cpuLeft, nodeAvailableResources.NanoCPUs) + assert.Equal(t, memoryLeft, nodeAvailableResources.MemoryBytes) + + apples := genericresource.GetResource("apple", nodeAvailableResources.Generic) + oranges := genericresource.GetResource("orange", nodeAvailableResources.Generic) + assert.Len(t, apples, 1) + assert.Len(t, oranges, 1) + + o := oranges[0].GetStr() + assert.True(t, o.Value == "blue" || o.Value == "red") + assert.Equal(t, int64(3), apples[0].GetDiscrete().Value) + } diff --git a/manager/scheduler/scheduler.go b/manager/scheduler/scheduler.go index a6479b8834..3e5bbd0870 100644 --- a/manager/scheduler/scheduler.go +++ b/manager/scheduler/scheduler.go @@ -4,6 +4,7 @@ import ( "time" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/log" "github.com/docker/swarmkit/manager/state" "github.com/docker/swarmkit/manager/state/store" @@ -297,15 +298,21 @@ func (s *Scheduler) deleteTask(ctx context.Context, t *api.Task) bool { func (s *Scheduler) createOrUpdateNode(n *api.Node) { nodeInfo, _ := s.nodeSet.nodeInfo(n.ID) - var resources api.Resources + var resources *api.Resources if n.Description != nil && n.Description.Resources != nil { - resources = *n.Description.Resources + resources = n.Description.Resources.Copy() // reconcile resources by looping over all tasks in this node for _, task := range nodeInfo.Tasks { reservations := taskReservations(task.Spec) + resources.MemoryBytes -= reservations.MemoryBytes resources.NanoCPUs -= reservations.NanoCPUs + + genericresource.ConsumeNodeResources(&resources.Generic, + task.AssignedGenericResources) } + } else { + resources = &api.Resources{} } nodeInfo.Node = n nodeInfo.AvailableResources = resources diff --git a/manager/scheduler/scheduler_test.go b/manager/scheduler/scheduler_test.go index 173e0dd786..4afea95d5a 100644 --- a/manager/scheduler/scheduler_test.go +++ b/manager/scheduler/scheduler_test.go @@ -10,6 +10,7 @@ import ( "github.com/docker/go-events" "github.com/docker/swarmkit/api" + "github.com/docker/swarmkit/api/genericresource" "github.com/docker/swarmkit/identity" "github.com/docker/swarmkit/manager/state" "github.com/docker/swarmkit/manager/state/store" @@ -824,6 +825,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e8, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 1), + }, }, }, }, @@ -844,6 +848,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 10), + }, }, }, }, @@ -864,6 +871,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 6), + }, }, }, }, @@ -884,6 +894,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 6), + }, }, }, }, @@ -904,6 +917,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 6), + }, }, }, }, @@ -924,6 +940,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 6), + }, }, }, }, @@ -944,6 +963,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 6), + }, }, }, }, @@ -979,6 +1001,9 @@ func testMultiplePreferences(t *testing.T, useSpecVersion bool) { Resources: &api.ResourceRequirements{ Reservations: &api.Resources{ MemoryBytes: 2e8, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 2), + }, }, }, }, @@ -1263,6 +1288,10 @@ func TestSchedulerResourceConstraint(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: append( + genericresource.NewSet("orange", "blue"), + genericresource.NewDiscrete("apple", 1), + ), }, }, } @@ -1282,6 +1311,10 @@ func TestSchedulerResourceConstraint(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 2e9, MemoryBytes: 2e9, + Generic: append( + genericresource.NewSet("orange", "blue", "red"), + genericresource.NewDiscrete("apple", 2), + ), }, }, } @@ -1299,6 +1332,10 @@ func TestSchedulerResourceConstraint(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 2e9, MemoryBytes: 2e9, + Generic: append( + genericresource.NewSet("orange", "blue", "red"), + genericresource.NewDiscrete("apple", 2), + ), }, }, } @@ -1313,6 +1350,10 @@ func TestSchedulerResourceConstraint(t *testing.T) { Resources: &api.ResourceRequirements{ Reservations: &api.Resources{ MemoryBytes: 2e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("orange", 2), + genericresource.NewDiscrete("apple", 2), + }, }, }, }, @@ -1365,6 +1406,10 @@ func TestSchedulerResourceConstraint(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 4e9, MemoryBytes: 8e9, + Generic: append( + genericresource.NewSet("orange", "blue", "red", "green"), + genericresource.NewDiscrete("apple", 4), + ), }, }, Status: api.NodeStatus{ @@ -1398,6 +1443,9 @@ func TestSchedulerResourceConstraintHA(t *testing.T) { Description: &api.NodeDescription{ Resources: &api.Resources{ MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 2), + }, }, }, } @@ -1414,6 +1462,9 @@ func TestSchedulerResourceConstraintHA(t *testing.T) { Description: &api.NodeDescription{ Resources: &api.Resources{ MemoryBytes: 1e11, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 5), + }, }, }, } @@ -1427,6 +1478,9 @@ func TestSchedulerResourceConstraintHA(t *testing.T) { Resources: &api.ResourceRequirements{ Reservations: &api.Resources{ MemoryBytes: 5e8, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 1), + }, }, }, }, @@ -1530,6 +1584,9 @@ func TestSchedulerResourceConstraintDeadTask(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 4), + }, }, }, } @@ -1541,6 +1598,9 @@ func TestSchedulerResourceConstraintDeadTask(t *testing.T) { Resources: &api.ResourceRequirements{ Reservations: &api.Resources{ MemoryBytes: 8e8, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 3), + }, }, }, }, @@ -1624,6 +1684,9 @@ func TestSchedulerPreexistingDeadTask(t *testing.T) { Resources: &api.Resources{ NanoCPUs: 1e9, MemoryBytes: 1e9, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 1), + }, }, }, } @@ -1636,6 +1699,9 @@ func TestSchedulerPreexistingDeadTask(t *testing.T) { Resources: &api.ResourceRequirements{ Reservations: &api.Resources{ MemoryBytes: 8e8, + Generic: []*api.GenericResource{ + genericresource.NewDiscrete("apple", 1), + }, }, }, },