Skip to content

Commit

Permalink
Merge branch 'master' into sgpp_enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
M00nF1sh authored Mar 30, 2022
2 parents a41f7ae + 5aecb9e commit b58e971
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 212 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require (
github.com/evanphx/json-patch v4.9.0+incompatible // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-logr/logr v0.3.0 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/google/go-cmp v0.5.2 // indirect
github.com/google/gofuzz v1.1.0 // indirect
Expand All @@ -66,7 +66,6 @@ require (
golang.org/x/text v0.3.6 // indirect
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
golang.org/x/tools v0.1.5 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gomodules.xyz/jsonpatch/v2 v2.1.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect
Expand All @@ -76,11 +75,9 @@ require (
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
k8s.io/apiextensions-apiserver v0.20.1 // indirect
k8s.io/component-base v0.20.2 // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.4.0 // indirect
k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd // indirect
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 // indirect
sigs.k8s.io/structured-merge-diff/v3 v3.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.0.2 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
185 changes: 13 additions & 172 deletions go.sum

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion misc/eni-max-pods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# This file was generated at 2022-03-20T00:58:08-07:00
# This file was generated at 2022-03-29T17:33:52Z
#
# The regions queried were:
# - ap-northeast-1
Expand Down Expand Up @@ -147,6 +147,15 @@ c6i.8xlarge 234
c6i.large 29
c6i.metal 737
c6i.xlarge 58
c7g.12xlarge 234
c7g.16xlarge 737
c7g.2xlarge 58
c7g.4xlarge 234
c7g.8xlarge 234
c7g.large 29
c7g.medium 8
c7g.metal 737
c7g.xlarge 58
cc2.8xlarge 234
cr1.8xlarge 234
d2.2xlarge 58
Expand Down
25 changes: 17 additions & 8 deletions pkg/awsutils/vpc_ip_resource_limit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 21 additions & 11 deletions scripts/gen_vpc_ip_limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,27 @@ func describeInstanceTypes(region string, eniLimitMap map[string]awsutils.Instan
// addManualLimits has the list of faulty or missing instance types
func addManualLimits(limitMap map[string]awsutils.InstanceTypeLimits) map[string]awsutils.InstanceTypeLimits {
manuallyAddedLimits := map[string]awsutils.InstanceTypeLimits{
"cr1.8xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "unknown"},
"hs1.8xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "unknown"},
"u-12tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown"},
"u-18tb1.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"u-24tb1.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"u-6tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown"},
"u-9tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown"},
"c5a.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"c5ad.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"p4d.24xlarge": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"dl1.24xlarge": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown"},
"cr1.8xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "unknown", IsBareMetal: false},
"hs1.8xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "unknown", IsBareMetal: false},
"u-12tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown", IsBareMetal: true},
"u-18tb1.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: true},
"u-24tb1.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: true},
"u-6tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown", IsBareMetal: true},
"u-9tb1.metal": {ENILimit: 5, IPv4Limit: 30, HypervisorType: "unknown", IsBareMetal: true},
"c5a.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: true},
"c5ad.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: true},
"p4d.24xlarge": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: false},
"dl1.24xlarge": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: false},
"c6g.xlarge": {ENILimit: 4, IPv4Limit: 15, HypervisorType: "nitro", IsBareMetal: false},
"c7g.12xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "nitro", IsBareMetal: false},
"c7g.16xlarge": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "nitro", IsBareMetal: false},
"c7g.2xlarge": {ENILimit: 4, IPv4Limit: 15, HypervisorType: "nitro", IsBareMetal: false},
"c7g.4xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "nitro", IsBareMetal: false},
"c7g.8xlarge": {ENILimit: 8, IPv4Limit: 30, HypervisorType: "nitro", IsBareMetal: false},
"c7g.large": {ENILimit: 3, IPv4Limit: 10, HypervisorType: "nitro", IsBareMetal: false},
"c7g.medium": {ENILimit: 2, IPv4Limit: 4, HypervisorType: "nitro", IsBareMetal: false},
"c7g.xlarge": {ENILimit: 4, IPv4Limit: 15, HypervisorType: "nitro", IsBareMetal: false},
"c7g.metal": {ENILimit: 15, IPv4Limit: 50, HypervisorType: "unknown", IsBareMetal: true},
}
for instanceType, instanceLimits := range manuallyAddedLimits {
val, ok := limitMap[instanceType]
Expand Down
8 changes: 0 additions & 8 deletions test/integration-new/cni/pod_traffic_test_PD_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ var _ = Describe("Test pod networking with prefix delegation enabled", func() {
)

JustBeforeEach(func() {
By("creating test namespace")
f.K8sResourceManagers.NamespaceManager().
CreateNamespace(utils.DefaultTestNamespace)

By("creating deployment")
serverDeploymentBuilder = manifest.NewDefaultDeploymentBuilder().
Name("traffic-server").
Expand All @@ -52,10 +48,6 @@ var _ = Describe("Test pod networking with prefix delegation enabled", func() {
})

JustAfterEach(func() {
By("deleting test namespace")
f.K8sResourceManagers.NamespaceManager().
DeleteAndWaitTillNamespaceDeleted(utils.DefaultTestNamespace)

k8sUtils.AddEnvVarToDaemonSetAndWaitTillUpdated(f, utils.AwsNodeName,
utils.AwsNodeNamespace, utils.AwsNodeName,
map[string]string{"ENABLE_PREFIX_DELEGATION": "false"})
Expand Down
8 changes: 0 additions & 8 deletions test/integration-new/cni/pod_traffic_test_PD_toggle.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ var _ = Describe("Test pod networking with prefix delegation enabled <-> disable
JustBeforeEach(func() {
// TODO Gingko doesnt support beforeAll so while adding upgrades/downgrades will move this to a suite
if firstRun {
By("creating test namespace")
f.K8sResourceManagers.NamespaceManager().
CreateNamespace(utils.DefaultTestNamespace)

By("creating deployment")
serverDeploymentBuilder = manifest.NewDefaultDeploymentBuilder().
Name("traffic-server").
Expand All @@ -61,10 +57,6 @@ var _ = Describe("Test pod networking with prefix delegation enabled <-> disable

JustAfterEach(func() {
if lastRun {
By("deleting test namespace")
f.K8sResourceManagers.NamespaceManager().
DeleteAndWaitTillNamespaceDeleted(utils.DefaultTestNamespace)

k8sUtils.AddEnvVarToDaemonSetAndWaitTillUpdated(f, utils.AwsNodeName,
utils.AwsNodeNamespace, utils.AwsNodeName,
map[string]string{"ENABLE_PREFIX_DELEGATION": "false"})
Expand Down

0 comments on commit b58e971

Please sign in to comment.