Skip to content

Commit 6ca1708

Browse files
authored
Pin AWS CNI version to 1.7.10 (#2183)
1 parent 8226f42 commit 6ca1708

File tree

7 files changed

+94
-63
lines changed

7 files changed

+94
-63
lines changed

dev/versions.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
## eksctl
44

55
1. Find the latest release on [GitHub](https://github.com/weaveworks/eksctl/releases) and check the changelog
6-
1. Update the version in `manager/Dockerfile`
7-
1. Update `generate_eks.py` as necessary
8-
1. Check that `eksctl utils write-kubeconfig` log filter still behaves as desired
6+
1. Search the code base for the old version to find where to update it (e.g. `manager/Dockerfile`)
7+
1. Update `generate_eks.py` if necessary
8+
1. Check that `eksctl utils write-kubeconfig` log filter still behaves as desired, and logs in `cortex cluster up` look good.
99
1. Update eksctl on your dev
10-
machine: `curl --location "https://github.com/weaveworks/eksctl/releases/download/0.27.0/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && sudo mv -f /tmp/eksctl /usr/local/bin`
11-
1. Check if eksctl iam polices changed by comparing the previous version of the eksctl policy docs to the new version's and update `./dev/minimum_aws_policy.json` and `docs/clusters/management/auth.md` accordingly. https://github.com/weaveworks/eksctl/blob/v0.40.0/userdocs/src/usage/minimum-iam-policies.md
10+
machine: `curl --location "https://github.com/weaveworks/eksctl/releases/download/0.50.0/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp && sudo mv -f /tmp/eksctl /usr/local/bin`
11+
1. Check if eksctl iam polices changed by comparing the previous version of the eksctl policy docs to the new version's and update `./dev/minimum_aws_policy.json` and `docs/clusters/management/auth.md` accordingly. https://github.com/weaveworks/eksctl/blob/v0.50.0/userdocs/src/usage/minimum-iam-policies.md
1212

1313
## Kubernetes
1414

@@ -19,16 +19,16 @@
1919

2020
## AWS CNI
2121

22-
1. Check which version of the CNI is used by default
22+
1. Update the CNI version in `eks_cluster.yaml` ([CNI releases](https://github.com/aws/amazon-vpc-cni-k8s/releases))
2323
1. Update the go module version (see `Go > Non-versioned modules` section below)
24-
1. If new instances types were added, check if `pkg/lib/aws/servicequotas.go` needs to be updated for the new instances
24+
1. Check if new instance types were added by running the script below (update the two env vars at the top).
25+
1. If there are new instance types, check if any changes need to be made to `servicequotas.go` or `validateInstanceType()`.
2526

26-
### AWS CNI (depreciated since we stopped setting it manually)
27-
28-
1. Find the latest release on [GitHub](https://github.com/aws/amazon-vpc-cni-k8s/releases) and check the changelog
29-
1. Update the version in `install.sh`
30-
1. Update the go module version (see `Go > Non-versioned modules` section below)
31-
1. If new instances types were added, check if `pkg/lib/aws/servicequotas.go` needs to be updated for the new instances
27+
```bash
28+
PREV_RELEASE=1.7.5
29+
NEW_RELEASE=1.7.10
30+
wget -q -O cni_supported_instances_prev.txt https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v${PREV_RELEASE}/pkg/awsutils/vpc_ip_resource_limit.go; wget -q -O cni_supported_instances_new.txt https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v${NEW_RELEASE}/pkg/awsutils/vpc_ip_resource_limit.go; git diff --no-index cni_supported_instances_prev.txt cni_supported_instances_new.txt; rm -rf cni_supported_instances_prev.txt; rm -rf cni_supported_instances_new.txt
31+
```
3232

3333
## Go
3434

@@ -96,7 +96,7 @@ see https://github.com/moby/moby/issues/39302#issuecomment-639687466_
9696
1. `rm -rf go.mod go.sum && go mod init && go clean -modcache`
9797
1. `go get k8s.io/client-go@v0.17.6 && go get k8s.io/apimachinery@v0.17.6 && go get k8s.io/api@v0.17.6`
9898
1. `go get istio.io/client-go@1.7.3 && go get istio.io/api@1.7.3`
99-
1. `go get github.com/aws/amazon-vpc-cni-k8s/pkg/awsutils@v1.7.1`
99+
1. `go get github.com/aws/amazon-vpc-cni-k8s/pkg/awsutils@v1.7.10`
100100
1. `go get github.com/cortexlabs/yaml@581aea36a2e4db10f8696587e48cac5248d64f4d`
101101
1. `go get github.com/cortexlabs/go-input@8b67a7a7b28d1c45f5c588171b3b50148462b247`
102102
1. `echo -e '\nreplace github.com/docker/docker => github.com/docker/engine v19.03.12' >> go.mod`

go.mod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ go 1.15
44

55
require (
66
cloud.google.com/go v0.73.0 // indirect
7-
github.com/Microsoft/go-winio v0.4.11 // indirect
87
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
9-
github.com/aws/aws-sdk-go v1.36.2
8+
github.com/aws/amazon-vpc-cni-k8s v1.7.10
9+
github.com/aws/aws-sdk-go v1.37.23
1010
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
1111
github.com/containerd/containerd v1.4.3 // indirect
1212
github.com/cortexlabs/go-input v0.0.0-20200503032952-8b67a7a7b28d
@@ -30,7 +30,7 @@ require (
3030
github.com/mitchellh/go-homedir v1.1.0
3131
github.com/morikuni/aec v1.0.0 // indirect
3232
github.com/onsi/ginkgo v1.14.1
33-
github.com/onsi/gomega v1.10.2
33+
github.com/onsi/gomega v1.10.3
3434
github.com/opencontainers/go-digest v1.0.0 // indirect
3535
github.com/opencontainers/image-spec v1.0.1 // indirect
3636
github.com/patrickmn/go-cache v2.1.0+incompatible
@@ -47,7 +47,6 @@ require (
4747
github.com/xlab/treeprint v1.0.0
4848
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
4949
go.uber.org/zap v1.15.0
50-
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect
5150
golang.org/x/mod v0.4.2 // indirect
5251
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb // indirect
5352
golang.org/x/oauth2 v0.0.0-20201203001011-0b49973bad19 // indirect

0 commit comments

Comments
 (0)