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 branch #2032

Merged
merged 38 commits into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 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
bfd59b0
Merge from master to release-1.11 branch
jayanthvn Jul 14, 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
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ jobs:
run: make release

- name: Create eks-charts PR
run: make ekscharts-sync-release
run: make ekscharts-sync-release

- name: Create sample manifests PR
run: make config-folder-sync
27 changes: 27 additions & 0 deletions .github/workflows/stale_issue_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Stale issue & PR handler'
vikasmb marked this conversation as resolved.
Show resolved Hide resolved
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@main
id: stale
with:
ascending: true
close-issue-message: 'Issue closed due to inactivity.'
close-pr-message: 'Pull request closed due to inactivity.'
days-before-close: 14
days-before-stale: 60
exempt-issue-labels: 'triage-pending,review-pending'
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.*, ',') }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ cni-metrics-helper
coverage.txt
build/
vendor
egress-v4-cni
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Was Skipped
* Bugfix - [Fix dependabot high sev issue caused by GoGo protobuf](https://github.com/aws/amazon-vpc-cni-k8s/pull/1942) (@jayanthvn)
* Bugfix - [Fixed empty netns bug](https://github.com/aws/amazon-vpc-cni-k8s/pull/1941 ) (@cgchinmay)


## v1.10.2
* Improvement - [Fetch Region and CLUSTER_ID information from cni-metrics-helper env](https://github.com/aws/amazon-vpc-cni-k8s/pull/1715) (@cgchinmay )
* Improvement - [Add VlanId in the cmdAdd Result struct](https://github.com/aws/amazon-vpc-cni-k8s/pull/1705) (@cgchinmay )
Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ ekscharts-sync:
ekscharts-sync-release:
${MAKEFILE_PATH}/scripts/sync-to-eks-charts.sh -b ${HELM_CHART_NAME} -r ${REPO_FULL_NAME} -n -y

build-test-binaries:
mkdir -p ${MAKEFILE_PATH}build
find ${MAKEFILE_PATH} -name '*suite_test.go' -type f | xargs dirname | xargs ginkgo build
find ${MAKEFILE_PATH} -name "*.test" -print0 | xargs -0 -I {} mv {} ${MAKEFILE_PATH}build

upload-resources-to-github:
${MAKEFILE_PATH}/scripts/upload-resources-to-github.sh

Expand All @@ -308,6 +303,9 @@ generate-cni-yaml:

release: generate-cni-yaml upload-resources-to-github

config-folder-sync:
${MAKEFILE_PATH}/scripts/sync-to-config-folder.sh

setup-ec2-sdk-override:
@if [ "$(EC2_SDK_OVERRIDE)" = "y" ] ; then \
./scripts/ec2_model_override/setup.sh ; \
Expand Down
73 changes: 38 additions & 35 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions charts/aws-vpc-cni/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ The following table lists the configurable parameters for this chart and their d
| `init.securityContext` | Init container Security context | `privileged: true` |
| `originalMatchLabels` | Use the original daemonset matchLabels | `false` |
| `nameOverride` | Override the name of the chart | `aws-node` |
| `extraVolumes` | Array to add extra volumes | `[]` |
| `extraVolumeMounts` | Array to add extra mount | `[]` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `podSecurityContext` | Pod Security Context | `{}` |
| `podAnnotations` | annotations to add to each pod | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions charts/aws-vpc-cni/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ rules:
resources:
- '*'
verbs: ["list", "watch"]
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
6 changes: 6 additions & 0 deletions charts/aws-vpc-cni/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ spec:
name: run-dir
- mountPath: /run/xtables.lock
name: xtables-lock
{{- with .Values.extraVolumeMounts }}
{{- toYaml .| nindent 10 }}
{{- end }}
volumes:
- name: cni-bin-dir
hostPath:
Expand Down Expand Up @@ -142,6 +145,9 @@ spec:
- name: xtables-lock
hostPath:
path: /run/xtables.lock
{{- with .Values.extraVolumes }}
{{- toYaml .| nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions cmd/aws-k8s-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

"github.com/aws/amazon-vpc-cni-k8s/pkg/ipamd"
"github.com/aws/amazon-vpc-cni-k8s/pkg/k8sapi"
"github.com/aws/amazon-vpc-cni-k8s/pkg/utils/eventrecorder"
"github.com/aws/amazon-vpc-cni-k8s/pkg/utils/logger"
"github.com/aws/amazon-vpc-cni-k8s/pkg/version"
)
Expand Down Expand Up @@ -58,6 +59,8 @@ func _main() int {
return 1
}

eventrecorder.InitEventRecorder(rawK8SClient)

ipamContext, err := ipamd.New(rawK8SClient, cacheK8SClient)
if err != nil {
log.Errorf("Initialization failure: %v", err)
Expand Down
4 changes: 4 additions & 0 deletions config/master/aws-k8s-cni-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ rules:
resources:
- '*'
verbs: ["list", "watch"]
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
4 changes: 4 additions & 0 deletions config/master/aws-k8s-cni-us-gov-east-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ rules:
resources:
- '*'
verbs: ["list", "watch"]
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
4 changes: 4 additions & 0 deletions config/master/aws-k8s-cni-us-gov-west-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ rules:
resources:
- '*'
verbs: ["list", "watch"]
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
4 changes: 4 additions & 0 deletions config/master/aws-k8s-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ rules:
resources:
- '*'
verbs: ["list", "watch"]
- apiGroups: ["", "events.k8s.io"]
resources:
- events
verbs: ["create", "patch", "list", "get"]
---
# Source: aws-vpc-cni/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 2 additions & 0 deletions config/multus/v3.8.0-eksbuild.1/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Changelog
Multus source code in-sync with upstream Multus repo [v3.8](https://github.com/k8snetworkplumbingwg/multus-cni/releases/tag/v3.8)
165 changes: 165 additions & 0 deletions config/multus/v3.8.0-eksbuild.1/aws-k8s-multus-cn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: network-attachment-definitions.k8s.cni.cncf.io
spec:
group: k8s.cni.cncf.io
scope: Namespaced
names:
plural: network-attachment-definitions
singular: network-attachment-definition
kind: NetworkAttachmentDefinition
shortNames:
- net-attach-def
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
description: 'NetworkAttachmentDefinition is a CRD schema specified by the Network Plumbing
Working Group to express the intent for attaching pods to one or more logical or physical
networks. More information available at: https://github.com/k8snetworkplumbingwg/multi-net-spec'
type: object
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this represen
tation of an object. Servers should convert recognized schemas to the
latest internal value, and may reject unrecognized values. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: 'NetworkAttachmentDefinition spec defines the desired state of a network attachment'
type: object
properties:
config:
description: 'NetworkAttachmentDefinition config is a JSON-formatted CNI configuration'
type: string
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: multus
rules:
- apiGroups: ["k8s.cni.cncf.io"]
resources:
- '*'
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
- pods/status
verbs:
- get
- update
- apiGroups:
- ""
- events.k8s.io
resources:
- events
verbs:
- create
- patch
- update
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: multus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: multus
subjects:
- kind: ServiceAccount
name: multus
namespace: kube-system
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: multus
namespace: kube-system
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-multus-ds
namespace: kube-system
labels:
tier: node
app: multus
name: multus
spec:
selector:
matchLabels:
name: multus
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
tier: node
app: multus
name: multus
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
hostNetwork: true
tolerations:
- operator: Exists
effect: NoSchedule
serviceAccountName: multus
containers:
- name: kube-multus
image: 961992271922.dkr.ecr.cn-northwest-1.amazonaws.com.cn/eks/multus-cni:v3.8.0-eksbuild.1
command: ["/entrypoint.sh"]
args:
- "--multus-conf-file=auto"
- "--cni-version=0.4.0"
- "--multus-master-cni-file-name=10-aws.conflist"
- "--multus-log-level=error"
- "--multus-log-file=/var/log/aws-routed-eni/multus.log"
resources:
requests:
cpu: "100m"
memory: "50Mi"
limits:
cpu: "100m"
memory: "50Mi"
securityContext:
privileged: true
volumeMounts:
- name: cni
mountPath: /host/etc/cni/net.d
- name: cnibin
mountPath: /host/opt/cni/bin
terminationGracePeriodSeconds: 10
volumes:
- name: cni
hostPath:
path: /etc/cni/net.d
- name: cnibin
hostPath:
path: /opt/cni/bin
Loading