Skip to content

Commit b0582a8

Browse files
authored
Merge pull request #4125 from zac-nixon/main
[feat GW API] Add initial reconciler + grant enforcement
2 parents d0df42b + 060cf06 commit b0582a8

18 files changed

+1225
-45
lines changed

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.1
1+
1.24.2

config/rbac/role.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,72 @@ rules:
128128
verbs:
129129
- patch
130130
- update
131+
- apiGroups:
132+
- gateway.networking.k8s.io
133+
resources:
134+
- gateways
135+
verbs:
136+
- get
137+
- list
138+
- watch
139+
- apiGroups:
140+
- gateway.networking.k8s.io
141+
resources:
142+
- gateways/finalizers
143+
verbs:
144+
- update
145+
- apiGroups:
146+
- gateway.networking.k8s.io
147+
resources:
148+
- gateways/status
149+
verbs:
150+
- get
151+
- patch
152+
- update
153+
- apiGroups:
154+
- gateway.networking.k8s.io
155+
resources:
156+
- tcproutes
157+
verbs:
158+
- get
159+
- list
160+
- watch
161+
- apiGroups:
162+
- gateway.networking.k8s.io
163+
resources:
164+
- tcproutes/finalizers
165+
verbs:
166+
- update
167+
- apiGroups:
168+
- gateway.networking.k8s.io
169+
resources:
170+
- tcproutes/status
171+
verbs:
172+
- get
173+
- patch
174+
- update
175+
- apiGroups:
176+
- gateway.networking.k8s.io
177+
resources:
178+
- udproutes
179+
verbs:
180+
- get
181+
- list
182+
- watch
183+
- apiGroups:
184+
- gateway.networking.k8s.io
185+
resources:
186+
- udproutes/finalizers
187+
verbs:
188+
- update
189+
- apiGroups:
190+
- gateway.networking.k8s.io
191+
resources:
192+
- udproutes/status
193+
verbs:
194+
- get
195+
- patch
196+
- update
131197
- apiGroups:
132198
- networking.k8s.io
133199
resources:

controllers/gateway/constants.go

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package gateway
2+
3+
/*
4+
Common constants
5+
*/
6+
7+
const (
8+
// GatewayResourceGroupVersion the groupVersion used by Gateway & GatewayClass resources.
9+
GatewayResourceGroupVersion = "gateway.networking.k8s.io/v1"
10+
)
11+
12+
/*
13+
NLB constants
14+
*/
15+
16+
const (
17+
// NLBGatewayController gateway controller name for NLB
18+
NLBGatewayController = "gateway.k8s.aws/nlb"
19+
20+
// NLBGatewayTagPrefix the tag applied to all resources created by the NLB Gateway controller.
21+
NLBGatewayTagPrefix = "gateway.k8s.aws.nlb"
22+
23+
// NLBRouteResourceGroupVersion the groupVersion used by TCPRoute and UDPRoute
24+
NLBRouteResourceGroupVersion = "gateway.networking.k8s.io/v1alpha2"
25+
26+
// NLBGatewayFinalizer the finalizer we attach the NLB Gateway object
27+
NLBGatewayFinalizer = "gateway.k8s.aws/nlb-finalizer"
28+
)
29+
30+
/*
31+
ALB Constants
32+
*/
33+
34+
const (
35+
// ALBGatewayController gateway controller name for ALB
36+
ALBGatewayController = "gateway.k8s.aws/alb"
37+
38+
// ALBGatewayTagPrefix the tag applied to all resources created by the ALB Gateway controller.
39+
ALBGatewayTagPrefix = "gateway.k8s.aws.alb"
40+
41+
// ALBRouteResourceGroupVersion the groupVersion used by HTTPRoute and GRPCRoute
42+
ALBRouteResourceGroupVersion = "gateway.networking.k8s.io/v1"
43+
44+
// ALBGatewayFinalizer the finalizer we attach the ALB Gateway object
45+
ALBGatewayFinalizer = "gateway.k8s.aws/alb-finalizer"
46+
)

0 commit comments

Comments
 (0)