|
3 | 3 | ## eksctl |
4 | 4 |
|
5 | 5 | 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. |
9 | 9 | 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 |
12 | 12 |
|
13 | 13 | ## Kubernetes |
14 | 14 |
|
|
19 | 19 |
|
20 | 20 | ## AWS CNI |
21 | 21 |
|
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)) |
23 | 23 | 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()`. |
25 | 26 |
|
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 | +``` |
32 | 32 |
|
33 | 33 | ## Go |
34 | 34 |
|
@@ -96,7 +96,7 @@ see https://github.com/moby/moby/issues/39302#issuecomment-639687466_ |
96 | 96 | 1. `rm -rf go.mod go.sum && go mod init && go clean -modcache` |
97 | 97 | 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` |
98 | 98 | 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` |
100 | 100 | 1. `go get github.com/cortexlabs/yaml@581aea36a2e4db10f8696587e48cac5248d64f4d` |
101 | 101 | 1. `go get github.com/cortexlabs/go-input@8b67a7a7b28d1c45f5c588171b3b50148462b247` |
102 | 102 | 1. `echo -e '\nreplace github.com/docker/docker => github.com/docker/engine v19.03.12' >> go.mod` |
|
0 commit comments