Skip to content

Commit 2c6894c

Browse files
yash97sushrkdependabot[bot]bhavi-koduru
authored
Release 1.6.3 (#503)
* Add flags to configure controller parameters (#492) * Add flags to configure controller parameters * update flag names * Bump github.com/onsi/ginkgo/v2 from 2.19.0 to 2.22.0 (#497) Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.19.0 to 2.22.0. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.19.0...v2.22.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * skip leaked ENIs cleanup on unmanaged nodes * Updating api-machinery, client-go (#493) * Bump k8s.io/apimachinery from 0.30.2 to 0.31.1 Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.30.2 to 0.31.1. - [Commits](kubernetes/apimachinery@v0.30.2...v0.31.1) --- updated-dependencies: - dependency-name: k8s.io/apimachinery dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * upgrading client-go, controller-runtime versions too --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * updating limits go bt not deleting g3 instances (#501) * Bump github.com/aws/amazon-vpc-cni-k8s from 1.18.1 to 1.18.3 (#446) * Bump github.com/aws/amazon-vpc-cni-k8s from 1.18.1 to 1.18.3 Bumps [github.com/aws/amazon-vpc-cni-k8s](https://github.com/aws/amazon-vpc-cni-k8s) from 1.18.1 to 1.18.3. - [Release notes](https://github.com/aws/amazon-vpc-cni-k8s/releases) - [Changelog](https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.18.3/CHANGELOG.md) - [Commits](aws/amazon-vpc-cni-k8s@v1.18.1...v1.18.3) --- updated-dependencies: - dependency-name: github.com/aws/amazon-vpc-cni-k8s dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * update decoder type to fix presubmit failures * update auto-generated CRD file --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sushrk <[email protected]> * use protobuf content type instead of json for k8s client (#484) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Sushmitha Ravikumar <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sushrk <[email protected]> Co-authored-by: Bhavitha <[email protected]>
1 parent bd090e0 commit 2c6894c

File tree

16 files changed

+407
-179
lines changed

16 files changed

+407
-179
lines changed

config/crd/bases/vpcresources.k8s.aws_securitygrouppolicies.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ spec:
7979
items:
8080
type: string
8181
type: array
82+
x-kubernetes-list-type: atomic
8283
required:
8384
- key
8485
- operator
8586
type: object
8687
type: array
88+
x-kubernetes-list-type: atomic
8789
matchLabels:
8890
additionalProperties:
8991
type: string
@@ -139,11 +141,13 @@ spec:
139141
items:
140142
type: string
141143
type: array
144+
x-kubernetes-list-type: atomic
142145
required:
143146
- key
144147
- operator
145148
type: object
146149
type: array
150+
x-kubernetes-list-type: atomic
147151
matchLabels:
148152
additionalProperties:
149153
type: string

controllers/core/configmap_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (r *ConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
9191
)
9292
}
9393
} else {
94-
r.Log.Error(err, "failed to retrieve branch ENI cool down period from amazon-vpc-cni configmap, will retain the current cooldown period", "cool down period", curCoolDownPeriod)
94+
r.Log.Info("branch ENI cool down period not configured in amazon-vpc-cni configmap, will retain the current cooldown period", "cool down period", curCoolDownPeriod)
9595
}
9696

9797
// Check if the Windows IPAM flag has changed

controllers/core/node_controller.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ var (
5757
// one routines to help high rate churn and larger nodes groups restarting
5858
// when the controller has to be restarted for various reasons.
5959
const (
60-
MaxNodeConcurrentReconciles = 10
61-
NodeTerminationFinalizer = "networking.k8s.aws/resource-cleanup"
60+
NodeTerminationFinalizer = "networking.k8s.aws/resource-cleanup"
6261
)
6362

6463
// NodeReconciler reconciles a Node object
@@ -143,7 +142,7 @@ func (r *NodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
143142
return ctrl.Result{}, err
144143
}
145144

146-
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager, healthzHandler *rcHealthz.HealthzHandler) error {
145+
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, healthzHandler *rcHealthz.HealthzHandler) error {
147146
// add health check on subpath for node controller
148147
healthzHandler.AddControllersHealthCheckers(
149148
map[string]healthz.Checker{"health-node-controller": r.Check()},
@@ -153,7 +152,7 @@ func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager, healthzHandler *rcHe
153152

154153
return ctrl.NewControllerManagedBy(mgr).
155154
For(&corev1.Node{}).
156-
WithOptions(controller.Options{MaxConcurrentReconciles: MaxNodeConcurrentReconciles}).
155+
WithOptions(controller.Options{MaxConcurrentReconciles: maxConcurrentReconciles}).
157156
Owns(&v1alpha1.CNINode{}).
158157
Complete(r)
159158
}

controllers/core/pod_controller.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ type PodReconciler struct {
5656
}
5757

5858
var (
59-
PodRequeueRequest = ctrl.Result{Requeue: true, RequeueAfter: time.Second}
60-
MaxPodConcurrentReconciles = 20
59+
PodRequeueRequest = ctrl.Result{Requeue: true, RequeueAfter: time.Second}
6160
)
6261

6362
// Reconcile handles create/update/delete event by delegating the request to the handler
@@ -192,8 +191,8 @@ func getAggregateResources(pod *v1.Pod) map[string]int64 {
192191
// list of runnable. After Manager acquire the lease the pod controller runnable
193192
// will be started and the Pod events will be sent to Reconcile function
194193
func (r *PodReconciler) SetupWithManager(ctx context.Context, manager ctrl.Manager,
195-
clientSet *kubernetes.Clientset, pageLimit int, syncPeriod time.Duration, healthzHandler *rcHealthz.HealthzHandler) error {
196-
r.Log.Info("The pod controller is using MaxConcurrentReconciles", "Routines", MaxPodConcurrentReconciles)
194+
clientSet *kubernetes.Clientset, pageLimit int, syncPeriod time.Duration, maxConcurrentReconciles int, healthzHandler *rcHealthz.HealthzHandler) error {
195+
r.Log.Info("The pod controller is using MaxConcurrentReconciles", "Routines", maxConcurrentReconciles)
197196

198197
customChecker, err := custom.NewControllerManagedBy(ctx, manager).
199198
WithLogger(r.Log.WithName("custom pod controller")).
@@ -205,7 +204,7 @@ func (r *PodReconciler) SetupWithManager(ctx context.Context, manager ctrl.Manag
205204
}).Options(custom.Options{
206205
PageLimit: pageLimit,
207206
ResyncPeriod: syncPeriod,
208-
MaxConcurrentReconciles: MaxPodConcurrentReconciles,
207+
MaxConcurrentReconciles: maxConcurrentReconciles,
209208
}).UsingConditions(r.Condition).Complete(r)
210209

211210
// add health check on subpath for pod and pod customized controllers

go.mod

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,83 +3,83 @@ module github.com/aws/amazon-vpc-resource-controller-k8s
33
go 1.22.5
44

55
require (
6-
github.com/aws/amazon-vpc-cni-k8s v1.18.1
6+
github.com/aws/amazon-vpc-cni-k8s v1.18.3
77
github.com/aws/aws-sdk-go v1.55.5
88
github.com/go-logr/logr v1.4.2
99
github.com/go-logr/zapr v1.3.0
1010
github.com/golang/mock v1.6.0
1111
github.com/google/uuid v1.6.0
12-
github.com/onsi/ginkgo/v2 v2.19.0
13-
github.com/onsi/gomega v1.33.1
12+
github.com/onsi/ginkgo/v2 v2.22.0
13+
github.com/onsi/gomega v1.34.2
1414
github.com/pkg/errors v0.9.1
15-
github.com/prometheus/client_golang v1.19.0
15+
github.com/prometheus/client_golang v1.19.1
1616
github.com/prometheus/client_model v0.6.1
17-
github.com/prometheus/common v0.53.0
17+
github.com/prometheus/common v0.55.0
1818
github.com/stretchr/testify v1.9.0
1919
go.uber.org/zap v1.27.0
2020
golang.org/x/time v0.5.0
2121
gomodules.xyz/jsonpatch/v2 v2.4.0
22-
k8s.io/api v0.29.3
23-
k8s.io/apimachinery v0.29.3
24-
k8s.io/client-go v0.29.3
25-
sigs.k8s.io/controller-runtime v0.17.0
22+
k8s.io/api v0.31.1
23+
k8s.io/apimachinery v0.31.1
24+
k8s.io/client-go v0.31.1
25+
sigs.k8s.io/controller-runtime v0.19.0
2626
)
2727

2828
require (
29+
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
2930
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3031
github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 // indirect
3132
github.com/gorilla/websocket v1.5.0 // indirect
3233
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
34+
github.com/x448/float16 v0.8.4 // indirect
35+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
3336
)
3437

3538
require (
3639
github.com/beorn7/perks v1.0.1 // indirect
37-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
38-
github.com/davecgh/go-spew v1.1.1 // indirect
40+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
41+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3942
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
40-
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
41-
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
43+
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
4244
github.com/fsnotify/fsnotify v1.7.0 // indirect
4345
github.com/go-openapi/jsonpointer v0.19.6 // indirect
4446
github.com/go-openapi/jsonreference v0.20.2 // indirect
45-
github.com/go-openapi/swag v0.22.3 // indirect
47+
github.com/go-openapi/swag v0.22.4 // indirect
4648
github.com/gogo/protobuf v1.3.2 // indirect
4749
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4850
github.com/golang/protobuf v1.5.4 // indirect
4951
github.com/google/go-cmp v0.6.0 // indirect
5052
github.com/google/gofuzz v1.2.0 // indirect
51-
github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 // indirect
53+
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
5254
github.com/imdario/mergo v0.3.13 // indirect
5355
github.com/jmespath/go-jmespath v0.4.0 // indirect
5456
github.com/josharian/intern v1.0.0 // indirect
5557
github.com/json-iterator/go v1.1.12 // indirect
5658
github.com/mailru/easyjson v0.7.7 // indirect
57-
github.com/moby/spdystream v0.2.0 // indirect
59+
github.com/moby/spdystream v0.4.0 // indirect
5860
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5961
github.com/modern-go/reflect2 v1.0.2 // indirect
6062
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
61-
github.com/pmezard/go-difflib v1.0.0 // indirect
62-
github.com/prometheus/procfs v0.12.0 // indirect
63+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
64+
github.com/prometheus/procfs v0.15.1 // indirect
6365
github.com/samber/lo v1.47.0
6466
github.com/spf13/pflag v1.0.5 // indirect
6567
go.uber.org/multierr v1.11.0 // indirect
6668
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
67-
golang.org/x/net v0.25.0 // indirect
68-
golang.org/x/oauth2 v0.18.0 // indirect
69-
golang.org/x/sys v0.20.0 // indirect
70-
golang.org/x/term v0.20.0 // indirect
71-
golang.org/x/text v0.16.0 // indirect
72-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
73-
google.golang.org/appengine v1.6.8 // indirect
74-
google.golang.org/protobuf v1.33.0 // indirect
69+
golang.org/x/net v0.30.0 // indirect
70+
golang.org/x/oauth2 v0.21.0 // indirect
71+
golang.org/x/sys v0.26.0 // indirect
72+
golang.org/x/term v0.25.0 // indirect
73+
golang.org/x/text v0.19.0 // indirect
74+
golang.org/x/tools v0.26.0 // indirect
75+
google.golang.org/protobuf v1.34.2 // indirect
7576
gopkg.in/inf.v0 v0.9.1 // indirect
7677
gopkg.in/yaml.v2 v2.4.0 // indirect
7778
gopkg.in/yaml.v3 v3.0.1 // indirect
78-
k8s.io/apiextensions-apiserver v0.29.0 // indirect
79-
k8s.io/component-base v0.29.0 // indirect
80-
k8s.io/klog/v2 v2.110.1 // indirect
81-
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
82-
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
79+
k8s.io/apiextensions-apiserver v0.31.0 // indirect
80+
k8s.io/klog/v2 v2.130.1 // indirect
81+
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
82+
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
8383
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
8484
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
8585
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)