Skip to content

Commit

Permalink
Merging Changes from master for CNI Release 1.18.6 (#3080)
Browse files Browse the repository at this point in the history
merge changes from master

git checkout -b release-1.18 origin/release-1.18
git merge master --strategy-option theirs
  • Loading branch information
orsenthil authored Oct 21, 2024
1 parent a121a8a commit 2d043bb
Show file tree
Hide file tree
Showing 30 changed files with 1,503 additions and 347 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@

# VERSION is the source revision that executables and images are built from.
VERSION ?= $(shell git describe --tags --always --dirty || echo "unknown")

# if the branch is master, use the version as master-<commit-hash>
ifeq ($(shell git rev-parse --abbrev-ref HEAD),master)
VERSION = master-$(shell git rev-parse --short HEAD)
endif

GOLANG_VERSION ?= $(shell cat .go-version)
# GOLANG_IMAGE is the building golang container image used.
GOLANG_IMAGE ?= public.ecr.aws/eks-distro-build-tooling/golang:$(GOLANG_VERSION)-gcc-al2
Expand Down Expand Up @@ -279,7 +285,7 @@ docker-metrics-test: ## Run metrics helper unit test suite in a container.
make metrics-unit-test

# Fetch the CNI plugins
plugins: FETCH_VERSION=1.4.0
plugins: FETCH_VERSION=1.5.1
plugins: FETCH_URL=https://github.com/containernetworking/plugins/releases/download/v$(FETCH_VERSION)/cni-plugins-$(GOOS)-$(GOARCH)-v$(FETCH_VERSION).tgz
plugins: VISIT_URL=https://github.com/containernetworking/plugins/tree/v$(FETCH_VERSION)/plugins/
plugins: ## Fetch the CNI plugins
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ For help, please consider the following venues (in order):
For all Kubernetes releases, *we recommend installing the latest VPC CNI release*. The following table denotes our *oldest* recommended
VPC CNI version for each actively supported Kubernetes release.

| Kubernetes Release | 1.29 | 1.28 | 1.27 | 1.26 | 1.25 | 1.24 |
| ------------------ | -------- | -------- | -------- | -------- | -------- | ------- |
| VPC CNI Version | v1.14.1+ | v1.13.4+ | v1.12.5+ | v1.12.0+ | v1.11.4+ | v1.9.3+ |
| Kubernetes Release | 1.31 | 1.30 | 1.29 | 1.28 | 1.27 | 1.26 | 1.25 | 1.24 |
| ------------------ | -------- | -------- | -------- | -------- | -------- | -------- | -------- | ------- |
| VPC CNI Version | v1.16.4+ | v1.16.0+ | v1.14.1+ | v1.13.4+ | v1.12.5+ | v1.12.0+ | v1.11.4+ | v1.9.3+ |

## Version Upgrade

Expand Down Expand Up @@ -516,6 +516,7 @@ Valid Values: `strict`, `standard`
Once `ENABLE_POD_ENI` is set to `true`, this value controls how the traffic of pods with the security group behaves.

* `strict` mode: all inbound/outbound traffic from pod with security group will be enforced by security group rules. This is the **default** mode if POD_SECURITY_GROUP_ENFORCING_MODE is not set.
* `strict` mode is supported when kube-proxy configured in `iptables` mode (default with EKS). If kube-proxy is configured in `ipvs` mode, please set `POD_SECURITY_GROUP_ENFORCING_MODE` to `standard`.

* `standard` mode: the traffic of pod with security group behaves same as pods without a security group, except that each pod occupies a dedicated branch ENI.
* inbound traffic to pod with security group from another host will be enforced by security group rules.
Expand Down
10 changes: 5 additions & 5 deletions config/master/aws-k8s-cni-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: aws-vpc-cni/templates/configmap.yaml
apiVersion: v1
Expand All @@ -312,7 +312,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
data:
enable-windows-ipam: "false"
enable-network-policy-controller: "false"
Expand All @@ -331,7 +331,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups:
- crd.k8s.amazonaws.com
Expand Down Expand Up @@ -377,7 +377,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -397,7 +397,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
updateStrategy:
rollingUpdate:
Expand Down
10 changes: 5 additions & 5 deletions config/master/aws-k8s-cni-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: aws-vpc-cni/templates/configmap.yaml
apiVersion: v1
Expand All @@ -312,7 +312,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
data:
enable-windows-ipam: "false"
enable-network-policy-controller: "false"
Expand All @@ -331,7 +331,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups:
- crd.k8s.amazonaws.com
Expand Down Expand Up @@ -377,7 +377,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -397,7 +397,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
updateStrategy:
rollingUpdate:
Expand Down
10 changes: 5 additions & 5 deletions config/master/aws-k8s-cni-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: aws-vpc-cni/templates/configmap.yaml
apiVersion: v1
Expand All @@ -312,7 +312,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
data:
enable-windows-ipam: "false"
enable-network-policy-controller: "false"
Expand All @@ -331,7 +331,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups:
- crd.k8s.amazonaws.com
Expand Down Expand Up @@ -377,7 +377,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -397,7 +397,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
updateStrategy:
rollingUpdate:
Expand Down
10 changes: 5 additions & 5 deletions config/master/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: aws-vpc-cni/templates/configmap.yaml
apiVersion: v1
Expand All @@ -312,7 +312,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
data:
enable-windows-ipam: "false"
enable-network-policy-controller: "false"
Expand All @@ -331,7 +331,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups:
- crd.k8s.amazonaws.com
Expand Down Expand Up @@ -377,7 +377,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -397,7 +397,7 @@ metadata:
app.kubernetes.io/name: aws-node
app.kubernetes.io/instance: aws-vpc-cni
k8s-app: aws-node
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
updateStrategy:
rollingUpdate:
Expand Down
8 changes: 4 additions & 4 deletions config/master/cni-metrics-helper-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: cni-metrics-helper/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -18,7 +18,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups: [""]
resources:
Expand All @@ -34,7 +34,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -54,7 +54,7 @@ metadata:
k8s-app: cni-metrics-helper
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
revisionHistoryLimit: 10
selector:
Expand Down
8 changes: 4 additions & 4 deletions config/master/cni-metrics-helper-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: cni-metrics-helper/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -18,7 +18,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups: [""]
resources:
Expand All @@ -34,7 +34,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -54,7 +54,7 @@ metadata:
k8s-app: cni-metrics-helper
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
revisionHistoryLimit: 10
selector:
Expand Down
8 changes: 4 additions & 4 deletions config/master/cni-metrics-helper-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: cni-metrics-helper/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -18,7 +18,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups: [""]
resources:
Expand All @@ -34,7 +34,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -54,7 +54,7 @@ metadata:
k8s-app: cni-metrics-helper
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
revisionHistoryLimit: 10
selector:
Expand Down
8 changes: 4 additions & 4 deletions config/master/cni-metrics-helper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
---
# Source: cni-metrics-helper/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -18,7 +18,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
rules:
- apiGroups: [""]
resources:
Expand All @@ -34,7 +34,7 @@ metadata:
labels:
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -54,7 +54,7 @@ metadata:
k8s-app: cni-metrics-helper
app.kubernetes.io/name: cni-metrics-helper
app.kubernetes.io/instance: cni-metrics-helper
app.kubernetes.io/version: "v1.18.4"
app.kubernetes.io/version: "v1.18.5"
spec:
revisionHistoryLimit: 10
selector:
Expand Down
3 changes: 2 additions & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,5 +259,6 @@ See the [cni-metrics-helper README](../cmd/cni-metrics-helper/README.md).
If you encouter build issues while building vpc cni, ensure you are logged into a docker registry.
For e.g.

```
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
~
```
Loading

0 comments on commit 2d043bb

Please sign in to comment.