This is an automated email from the ASF dual-hosted git repository.

ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/master by this push:
     new db33f109 [YUNIKORN-2584] Shim: Remove references to MaxAllocations 
(#825)
db33f109 is described below

commit db33f1094b436c2669f23cee0be7027a61e58f44
Author: Craig Condit <[email protected]>
AuthorDate: Wed Apr 24 10:58:11 2024 -0500

    [YUNIKORN-2584] Shim: Remove references to MaxAllocations (#825)
    
    Closes: #825
---
 go.mod                  | 4 ++--
 go.sum                  | 8 ++++----
 pkg/common/si_helper.go | 1 -
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/go.mod b/go.mod
index 23b4e7c1..0d16d4c4 100644
--- a/go.mod
+++ b/go.mod
@@ -21,8 +21,8 @@ module github.com/apache/yunikorn-k8shim
 go 1.21
 
 require (
-       github.com/apache/yunikorn-core v0.0.0-20240422073303-db13a4fa8585
-       github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240422062544-b70081933c38
+       github.com/apache/yunikorn-core v0.0.0-20240424145521-e17eafaab1c8
+       github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240423191701-8c98b1604a7a
        github.com/google/go-cmp v0.6.0
        github.com/google/uuid v1.6.0
        github.com/looplab/fsm v1.0.1
diff --git a/go.sum b/go.sum
index 981af370..5f983d0f 100644
--- a/go.sum
+++ b/go.sum
@@ -9,10 +9,10 @@ github.com/NYTimes/gziphandler v1.1.1 
h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cq
 github.com/NYTimes/gziphandler v1.1.1/go.mod 
h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c=
 github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df 
h1:7RFfzj4SSt6nnvCPbCqijJi1nWCd+TqAT3bYCStRC18=
 github.com/antlr/antlr4/runtime/Go/antlr/v4 
v4.0.0-20230305170008-8188dc5388df/go.mod 
h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM=
-github.com/apache/yunikorn-core v0.0.0-20240422073303-db13a4fa8585 
h1:R8ugyStoQzlZra+up+UVxLlxW59O/bp7jw1S97xo61U=
-github.com/apache/yunikorn-core v0.0.0-20240422073303-db13a4fa8585/go.mod 
h1:Zh5AYAA1Sskzak8F4xikX0gp8nub6rhuh8Trfnr1Es8=
-github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240422062544-b70081933c38 
h1:/02cjuc0xpQPZIGezL45QZ6muGI7dfesu9l38U9fbx0=
-github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240422062544-b70081933c38/go.mod 
h1:WuHJpVk34t8N5+1ErYGj/5Qq33/cRzL4YtuoAsbMtWc=
+github.com/apache/yunikorn-core v0.0.0-20240424145521-e17eafaab1c8 
h1:xPcUd/tDOrIatdgyzCgUtRlvfM4s/DN4cS49iyw3rnU=
+github.com/apache/yunikorn-core v0.0.0-20240424145521-e17eafaab1c8/go.mod 
h1:ZXkFNHrLLReWAcEGj6Ya3hkmr5lMpa9WgIy4Lx0dlxw=
+github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240423191701-8c98b1604a7a 
h1:H978zsTL2FvbRFnySO83DOFLO33PwHWFdmHvMoSVXsc=
+github.com/apache/yunikorn-scheduler-interface 
v0.0.0-20240423191701-8c98b1604a7a/go.mod 
h1:WuHJpVk34t8N5+1ErYGj/5Qq33/cRzL4YtuoAsbMtWc=
 github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 
h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
 github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod 
h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
 github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a 
h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
diff --git a/pkg/common/si_helper.go b/pkg/common/si_helper.go
index bb910205..b679a844 100644
--- a/pkg/common/si_helper.go
+++ b/pkg/common/si_helper.go
@@ -77,7 +77,6 @@ func CreateAllocationRequestForTask(appID, taskID string, 
resource *si.Resource,
                AllocationKey:    taskID,
                ResourceAsk:      resource,
                ApplicationID:    appID,
-               MaxAllocations:   1,
                Tags:             CreateTagsForTask(pod),
                Placeholder:      placeholder,
                TaskGroupName:    taskGroupName,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to