Skip to content

Commit 4d30ef7

Browse files
authored
removing security group limit of 5 from crd (#583)
1 parent c9ca5cb commit 4d30ef7

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

apis/vpcresources/v1beta1/securitygrouppolicy_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ type SecurityGroupPolicySpec struct {
3030
type GroupIds struct {
3131
// Groups is the list of EC2 Security Groups Ids that need to be applied to the ENI of a Pod.
3232
// +kubebuilder:validation:MinItems=1
33-
// +kubebuilder:validation:MaxItems=5
3433
Groups []string `json:"groupIds,omitempty"`
3534
}
3635

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: cninodes.vpcresources.k8s.aws
88
spec:
99
group: vpcresources.k8s.aws

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: securitygrouppolicies.vpcresources.k8s.aws
88
spec:
99
group: vpcresources.k8s.aws
@@ -105,7 +105,6 @@ spec:
105105
need to be applied to the ENI of a Pod.
106106
items:
107107
type: string
108-
maxItems: 5
109108
minItems: 1
110109
type: array
111110
type: object

config/rbac/role.yaml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,11 @@ rules:
1212
- create
1313
- patch
1414
- update
15-
- apiGroups:
16-
- ""
17-
resources:
18-
- pods
19-
verbs:
20-
- get
21-
- list
22-
- patch
23-
- watch
2415
- apiGroups:
2516
- ""
2617
resources:
2718
- nodes
19+
- serviceaccounts
2820
verbs:
2921
- get
3022
- list
@@ -39,10 +31,11 @@ rules:
3931
- apiGroups:
4032
- ""
4133
resources:
42-
- serviceaccounts
34+
- pods
4335
verbs:
4436
- get
4537
- list
38+
- patch
4639
- watch
4740
- apiGroups:
4841
- crd.k8s.amazonaws.com
@@ -80,21 +73,21 @@ metadata:
8073
namespace: kube-system
8174
rules:
8275
- apiGroups:
83-
- apps
76+
- ""
8477
resourceNames:
85-
- vpc-resource-controller
78+
- amazon-vpc-cni
8679
resources:
87-
- deployments
80+
- configmaps
8881
verbs:
8982
- get
9083
- list
9184
- watch
9285
- apiGroups:
93-
- ""
86+
- apps
9487
resourceNames:
95-
- amazon-vpc-cni
88+
- vpc-resource-controller
9689
resources:
97-
- configmaps
90+
- deployments
9891
verbs:
9992
- get
10093
- list

hack/toolchain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ main() {
1111

1212
tools() {
1313
go install sigs.k8s.io/controller-runtime/tools/[email protected]
14-
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
14+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.18.0
1515
go install github.com/google/ko@latest
1616

1717
if ! echo "$PATH" | grep -q "${GOPATH:-undefined}/bin\|$HOME/go/bin"; then

0 commit comments

Comments
 (0)