Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master to Release 1.11 for v1.11.4 release #2064

Merged
merged 55 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
45dd7e4
1.10.3 release artifacts (#1962)
jayanthvn Apr 11, 2022
dd7615e
Stale PR and issue cleanup wrkflow (#1964)
jayanthvn Apr 12, 2022
46c41f8
fix image name during build (#1968)
M00nF1sh Apr 13, 2022
fd8bcf0
add event recorder utils to raise aws-node pod events (#1536)
sushrk Apr 13, 2022
c22f72e
refactor uploader scripts (#1972)
jayanthvn Apr 15, 2022
db1481f
Fix cni panic due to pod.Annotations is a nil map (#1974)
Downager Apr 18, 2022
1c6cc3c
chart: Add extraVolumes and extraVolumeMounts (#1949)
jkroepke Apr 22, 2022
22d3a91
Add the new command in the section of CNI Plugin Sequence (#1813)
a2ush Apr 22, 2022
3146258
Bump github.com/containernetworking/cni from 0.8.0 to 0.8.1 (#1966)
dependabot[bot] Apr 22, 2022
af55286
Update README to highlight containerd.sock edge case with EKS AMI. (#…
orsenthil May 5, 2022
44c132a
add cni release test script (#1971)
sushrk May 6, 2022
1c4bd46
Multus release manifest (#1984)
May 6, 2022
42e5f2d
Added Tests for validating Multus Installation (#1811)
May 9, 2022
fcf90e8
Port new integration tests (#1928)
May 9, 2022
902dcb2
increase timeout (#1985)
May 11, 2022
5b34d7d
Added configurable flag to create test nodes with arm64 and container…
May 11, 2022
1950aa7
Cleanup binary file (#1987)
jayanthvn May 12, 2022
e3cf980
log error in ipamd on api server timeout (#1988)
May 12, 2022
9d7bf47
Refactored code and Added cni addon upgrade/downgrade regression test…
May 17, 2022
2c32145
Remove generation of calico manifests (#1905)
jayanthvn May 18, 2022
5ea08e9
cni manifest upgrade downgrade test (#1863)
May 19, 2022
3b80849
Update golang to Go 1.18 (#1991)
orsenthil May 25, 2022
7748fdb
Update CNI Plugins to v1.1.1 (#1997)
orsenthil Jun 3, 2022
6416a0e
Update release manifests for VPC CNI v1.11.2 (#2001) (#2002)
orsenthil Jun 6, 2022
10f3aed
Enable Calico on ARM64 and add configureable flags for Calico install…
haouc Jun 11, 2022
5c6945e
fix integration test script (#1998)
sushrk Jun 18, 2022
7156643
Updated dependencies (#2012)
jayanthvn Jun 20, 2022
8eafddd
Fix readme (#2013)
Jun 21, 2022
e6439fb
Merge fix-ginkgo to master (#2014)
sushrk Jun 22, 2022
1158a52
Multus manifest for release v3.9.0-eksbuild.1 (#2016)
Jun 24, 2022
6abbf20
Updating new instances - p4de (#2018)
jayanthvn Jun 29, 2022
4bd4c8e
Fix go build failure with v6 networking suite. (#2020)
orsenthil Jul 1, 2022
a3af829
Update README.md (#2021)
Jul 5, 2022
301c379
Fix Go build for ipamd test package. (#2023)
orsenthil Jul 6, 2022
f979630
Fix go build for cni test package. (#2024)
orsenthil Jul 6, 2022
b01d356
Prevent allocate/free ENIs when node is marked noSchedule (#1927)
jayanthvn Jul 11, 2022
6b04445
Re-use logger instance (#2029)
vikasmb Jul 12, 2022
f8d731a
fix addOn version api for beta (#2034)
M00nF1sh Jul 15, 2022
ecfe8fa
Update yaml.v3 package dependency (#2036)
vikasmb Jul 22, 2022
46fcc3a
Increase cpu requests limit (#2038)
vikasmb Jul 22, 2022
d75dd77
fix ipamd integration failures and cleanup (#2039)
sushrk Jul 26, 2022
35eac2d
cleanup info logs in event recorder and test script (#2043)
sushrk Jul 27, 2022
21f39ee
add nodeSelector to cni-metrics-helper test deployment and update ima…
sushrk Jul 28, 2022
bce0df8
fix makefile path in canary test script (#2051)
sushrk Aug 3, 2022
4255421
disable arm build (#2052)
M00nF1sh Aug 4, 2022
ff5f767
Updated changelog for 1.11.3 release (#2053)
vikasmb Aug 4, 2022
eaca3fe
Updating master branch config files to release 1.11.3 (#2055)
vikasmb Aug 4, 2022
69fa24f
update aws-node clusterrole permissions (#2058)
sushrk Aug 10, 2022
b43e9b0
Fix minor typo on documentation (#2059)
guikcd Aug 10, 2022
0ad0303
multus manifest for release v3.9.0-eksbuild.2 (#2057)
sushrk Aug 10, 2022
1c4daa0
Setting AWS_VPC_K8S_CNI_RANDOMIZESNAT to the default value (#2028)
vgunapati Aug 15, 2022
601685d
Fixing prefixes per ENI value in example (#2060)
mkarakas Aug 15, 2022
99b14af
IPAMD optimizations and makefile changes (#1975)
jayanthvn Aug 15, 2022
cb5fd1d
Updated new instances (#2062)
jayanthvn Aug 15, 2022
df2b4bd
Merge branch 'master' into release-1.11
jayanthvn Aug 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions .github/workflows/build-multi-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,27 @@ jobs:

- name: Build
run: make docker all

build_arm:
name: Build ARM64
runs-on: [self-hosted, linux, arm64]
steps:

- name: Set up Go 1.18
uses: actions/setup-go@v2
with:
go-version: '1.18'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Clean up docker
run: docker system prune -a --volumes -f

- name: Clean up stale docker images
run: sudo docker image prune -f

- name: Build
run: make docker all

# Disable arm-build
# build_arm:
# name: Build ARM64
# runs-on: [self-hosted, linux, arm64]
# steps:

# - name: Set up Go 1.18
# uses: actions/setup-go@v2
# with:
# go-version: '1.18'
# id: go

# - name: Check out code into the Go module directory
# uses: actions/checkout@v2

# - name: Clean up docker
# run: docker system prune -a --volumes -f

# - name: Clean up stale docker images
# run: sudo docker image prune -f

# - name: Build
# run: make docker all
2 changes: 0 additions & 2 deletions .github/workflows/stale_issue_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ jobs:
operations-per-run: 100
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days'
stale-pr-message: 'This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days'
- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}
74 changes: 46 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ MULTI_PLATFORM_BUILD_TARGETS = linux/amd64,linux/arm64
# Default to building an executable using the host's Go toolchain.
.DEFAULT_GOAL = build-linux

##@ Building

# Build both CNI and metrics helper container images.
all: docker docker-init docker-metrics ## Builds Init, CNI and metrics helper container images.

Expand Down Expand Up @@ -137,6 +139,23 @@ docker-func-test: docker ## Run the built CNI container image to use in func
docker run $(DOCKER_RUN_FLAGS) \
"$(IMAGE_NAME)"

multi-arch-cni-build-push: ## Build multi-arch VPC CNI container image.
docker buildx build $(DOCKER_BUILD_FLAGS) \
-f scripts/dockerfiles/Dockerfile.release \
--platform "$(MULTI_PLATFORM_BUILD_TARGETS)"\
-t "$(IMAGE_NAME)" \
--push \
.

multi-arch-cni-init-build-push: ## Build VPC CNI plugin Init container image.
docker buildx build $(DOCKER_BUILD_FLAGS) \
-f scripts/dockerfiles/Dockerfile.init \
--platform "$(MULTI_PLATFORM_BUILD_TARGETS)"\
-t "$(INIT_IMAGE_NAME)" \
--push \
.

##@ Run Unit Tests
# Run unit tests
unit-test: export AWS_VPC_K8S_CNI_LOG_FILE=stdout
unit-test: ## Run unit tests
Expand All @@ -155,6 +174,7 @@ unit-test-race: ## Run unit tests with race detection (can only be run nativ
go test -v -cover -race -timeout 10s ./pkg/eniconfig/...
go test -v -cover -race -timeout 10s ./pkg/ipamd/...

##@ Build and Run Unit Tests
# Build the unit test driver container image.
build-docker-test: ## Build the unit test driver container image.
docker build $(DOCKER_BUILD_FLAGS) \
Expand All @@ -167,6 +187,8 @@ docker-unit-tests: build-docker-test ## Run unit tests inside of the testing
docker run $(DOCKER_RUN_ARGS) \
$(TEST_IMAGE_NAME) \
make unit-test

##@ Build metrics helper agent

# Build metrics helper agent.
build-metrics: ## Build metrics helper agent.
Expand All @@ -180,6 +202,8 @@ docker-metrics: ## Build metrics helper agent Docker image.
.
@echo "Built Docker image \"$(METRICS_IMAGE_NAME)\""

##@ Run metrics helper Unit Tests

# Run metrics helper unit test suite (must be run natively).
metrics-unit-test: CGO_ENABLED=1
metrics-unit-test: GOARCH=
Expand All @@ -195,31 +219,6 @@ docker-metrics-test: ## Run metrics helper unit test suite in a container.
$(GOLANG_IMAGE) \
make metrics-unit-test

generate:
PATH=$(CURDIR)/scripts:$(PATH) go generate -x ./...
$(MAKE) format

# Generate limit file go code
# Generate eni-max-pods.txt file for EKS AMI
generate-limits: GOOS=
generate-limits: ## Generate limit file go code
go run $(VENDOR_OVERRIDE_FLAG) scripts/gen_vpc_ip_limits.go

multi-arch-cni-build-push: ## Build multi-arch VPC CNI container image.
docker buildx build $(DOCKER_BUILD_FLAGS) \
-f scripts/dockerfiles/Dockerfile.release \
--platform "$(MULTI_PLATFORM_BUILD_TARGETS)"\
-t "$(IMAGE_NAME)" \
--push \
.

multi-arch-cni-init-build-push: ## Build VPC CNI plugin Init container image.
docker buildx build $(DOCKER_BUILD_FLAGS) \
-f scripts/dockerfiles/Dockerfile.init \
--platform "$(MULTI_PLATFORM_BUILD_TARGETS)"\
-t "$(INIT_IMAGE_NAME)" \
--push \
.
# Fetch the CNI plugins
plugins: FETCH_VERSION=1.1.1
plugins: FETCH_URL=https://github.com/containernetworking/plugins/releases/download/v$(FETCH_VERSION)/cni-plugins-$(GOOS)-$(GOARCH)-v$(FETCH_VERSION).tgz
Expand All @@ -232,6 +231,8 @@ plugins: ## Fetch the CNI plugins
@echo
curl -L $(FETCH_URL) | tar -zx $(PLUGIN_BINS)

##@ Debug script

debug-script: FETCH_URL=https://raw.githubusercontent.com/awslabs/amazon-eks-ami/master/log-collector-script/linux/eks-log-collector.sh
debug-script: VISIT_URL=https://github.com/awslabs/amazon-eks-ami/tree/master/log-collector-script/linux
debug-script: ## Fetching debug script from awslabs/amazon-eks-ami
Expand All @@ -243,6 +244,8 @@ debug-script: ## Fetching debug script from awslabs/amazon-eks-ami
curl -L $(FETCH_URL) -o ./aws-cni-support.sh
chmod +x ./aws-cni-support.sh

##@ Formatting

# Run all source code checks.
check: check-format lint vet ## Run all source code checks.

Expand Down Expand Up @@ -289,6 +292,18 @@ check-format: format
version:
@echo ${VERSION}

##@ Generate ENI/IP limits

generate:
PATH=$(CURDIR)/scripts:$(PATH) go generate -x ./...
$(MAKE) format

# Generate limit file go code
# Generate eni-max-pods.txt file for EKS AMI
generate-limits: GOOS=
generate-limits: ## Generate limit file go code
go run $(VENDOR_OVERRIDE_FLAG) scripts/gen_vpc_ip_limits.go

ekscharts-sync:
${MAKEFILE_PATH}/scripts/sync-to-eks-charts.sh -b ${HELM_CHART_NAME} -r ${REPO_FULL_NAME}

Expand All @@ -315,13 +330,16 @@ cleanup-ec2-sdk-override:
@if [ "$(EC2_SDK_OVERRIDE)" = "y" ] ; then \
./scripts/ec2_model_override/cleanup.sh ; \
fi

##@ Cleanup

# Clean temporary files and build artifacts from the project.
clean: ## Clean temporary files and build artifacts from the project.
@rm -f -- $(BINS)
@rm -f -- $(PLUGIN_BINS)
@rm -f -- coverage.txt

help: ## Show this help.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'
##@ Helpers

help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
2 changes: 1 addition & 1 deletion charts/aws-vpc-cni/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: aws-vpc-cni
version: 1.1.19
version: 1.1.20
appVersion: "v1.11.3"
description: A Helm chart for the AWS VPC CNI
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-vpc-cni/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ rules:
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
verbs: ["create", "patch", "list"]
2 changes: 1 addition & 1 deletion config/master/aws-k8s-cni-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rules:
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
verbs: ["create", "patch", "list"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion config/master/aws-k8s-cni-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rules:
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
verbs: ["create", "patch", "list"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion config/master/aws-k8s-cni-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rules:
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
verbs: ["create", "patch", "list"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion config/master/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ rules:
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
verbs: ["create", "patch", "list"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 2 additions & 0 deletions config/multus/v3.9.0-eksbuild.2/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Changelog
Addressed CVE's
Loading