Skip to content

Commit 471d264

Browse files
authored
Revert PR #418 "Merge branch eni-cleanup into master" (#470)
* Revert "Merge branch eni-cleanup into master" This reverts commit b5a054e. * go fmt change
1 parent 827c2b8 commit 471d264

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+612
-2065
lines changed

PROJECT

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ resources:
1919
version: v1beta1
2020
- api:
2121
crdVersion: v1
22-
controller: true
2322
domain: k8s.aws
2423
group: vpcresources
2524
kind: CNINode

apis/vpcresources/v1alpha1/cninode_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ type Feature struct {
3535
// CNINodeSpec defines the desired state of CNINode
3636
type CNINodeSpec struct {
3737
Features []Feature `json:"features,omitempty"`
38-
// Additional tag key/value added to all network interfaces provisioned by the vpc-resource-controller and VPC-CNI
39-
Tags map[string]string `json:"tags,omitempty"`
4038
}
4139

4240
// CNINodeStatus defines the managed VPC resources.

apis/vpcresources/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ spec:
6161
type: string
6262
type: object
6363
type: array
64-
tags:
65-
additionalProperties:
66-
type: string
67-
description: Additional tag key/value added to all network interfaces
68-
provisioned by the vpc-resource-controller and VPC-CNI
69-
type: object
7064
type: object
7165
status:
7266
description: CNINodeStatus defines the managed VPC resources.

config/rbac/role.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ rules:
6060
- create
6161
- get
6262
- list
63-
- patch
64-
- update
6563
- watch
6664
- apiGroups:
6765
- vpcresources.k8s.aws

controllers/core/node_controller.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020

2121
"github.com/aws/amazon-vpc-resource-controller-k8s/apis/vpcresources/v1alpha1"
2222
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/condition"
23-
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/config"
2423
rcHealthz "github.com/aws/amazon-vpc-resource-controller-k8s/pkg/healthz"
2524
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/k8s"
2625
"github.com/aws/amazon-vpc-resource-controller-k8s/pkg/node/manager"
@@ -37,6 +36,15 @@ import (
3736
"sigs.k8s.io/controller-runtime/pkg/healthz"
3837
)
3938

39+
// MaxNodeConcurrentReconciles is the number of go routines that can invoke
40+
// Reconcile in parallel. Since Node Reconciler, performs local operation
41+
// on cache only a single go routine should be sufficient. Using more than
42+
// one routines to help high rate churn and larger nodes groups restarting
43+
// when the controller has to be restarted for various reasons.
44+
const (
45+
MaxNodeConcurrentReconciles = 10
46+
)
47+
4048
// NodeReconciler reconciles a Node object
4149
type NodeReconciler struct {
4250
client.Client
@@ -109,7 +117,7 @@ func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager, healthzHandler *rcHe
109117

110118
return ctrl.NewControllerManagedBy(mgr).
111119
For(&corev1.Node{}).
112-
WithOptions(controller.Options{MaxConcurrentReconciles: config.MaxNodeConcurrentReconciles}).
120+
WithOptions(controller.Options{MaxConcurrentReconciles: MaxNodeConcurrentReconciles}).
113121
Owns(&v1alpha1.CNINode{}).
114122
Complete(r)
115123
}

controllers/crds/cninode_controller.go

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)