Skip to content

Commit 37186d7

Browse files
feat: GatewayClass agentgateway-v2, controllerName agentgateway.dev/agentgateway (#13088)
Signed-off-by: David L. Chandler <[email protected]> Signed-off-by: Joshua Pritchard <[email protected]> Co-authored-by: Joshua Pritchard <[email protected]>
1 parent 4a40304 commit 37186d7

File tree

181 files changed

+343
-342
lines changed

Some content is hidden

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

181 files changed

+343
-342
lines changed

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ kgateway is a **dual control plane** implementing the Kubernetes Gateway API for
88
### Controller Names & Isolation
99
kgateway supports **two independent controllers** that can run side-by-side:
1010
- **Envoy Controller**: `kgateway.dev/kgateway` (defined in `wellknown.DefaultGatewayControllerName`)
11-
- **Agentgateway Controller**: `kgateway.dev/agentgateway` (defined in `wellknown.DefaultAgwControllerName`)
11+
- **Agentgateway Controller**: `agentgateway.dev/agentgateway` (defined in `wellknown.DefaultAgwControllerName`)
1212

1313
**Critical Requirements:**
1414
1. Controllers MUST always respect `GatewayClass.spec.controllerName` Classname can matter, in the case of waypoints, but its always more specific information
@@ -34,7 +34,7 @@ kgateway supports **two independent controllers** that can run side-by-side:
3434
**Deployment:**
3535
- Gateway reconciler checks enable flags before calling deployer
3636
- Deployer selects chart based on Gateway's controllerName from GatewayClass
37-
- Chart selection: envoy chart for `kgateway.dev/kgateway`, agentgateway chart for `kgateway.dev/agentgateway`
37+
- Chart selection: envoy chart for `kgateway.dev/kgateway`, agentgateway chart for `agentgateway.dev/agentgateway`
3838

3939
**Enable Flags:**
4040
- `EnableEnvoy` (default: true): Controls if envoy ProxySyncer, StatusSyncer, and GatewayClass creation run

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ conformance-%: ## Run only the specified Gateway API conformance test by ShortN
853853
#----------------------------------------------------------------------------------
854854

855855
# Agent Gateway conformance test configuration
856-
AGW_CONFORMANCE_GATEWAY_CLASS ?= agentgateway
856+
AGW_CONFORMANCE_GATEWAY_CLASS ?= agentgateway-v2
857857
AGW_CONFORMANCE_REPORT_ARGS ?= -report-output=$(TEST_ASSET_DIR)/conformance/agw-$(VERSION)-report.yaml -organization=kgateway-dev -project=kgateway -version=$(VERSION) -url=github.com/kgateway-dev/kgateway -contact=github.com/kgateway-dev/kgateway/issues/new/choose
858858
AGW_CONFORMANCE_ARGS := -gateway-class=$(AGW_CONFORMANCE_GATEWAY_CLASS) $(AGW_CONFORMANCE_REPORT_ARGS)
859859

api/v1alpha1/kgateway/gateway_parameters_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type KubernetesProxyConfig struct {
8383
Deployment *ProxyDeployment `json:"deployment,omitempty"`
8484

8585
// Configuration for the container running Envoy.
86-
// If the Gateway uses a GatewayClass with controllerName: kgateway.dev/agentgateway,
86+
// If the Gateway uses a GatewayClass with controllerName: agentgateway.dev/agentgateway,
8787
// the EnvoyContainer values will be ignored.
8888
//
8989
// +optional
@@ -679,7 +679,7 @@ func (in *StatsMatcher) GetExclusionList() []shared.StringMatcher {
679679

680680
// Agentgateway configures the agentgateway dataplane integration.
681681
// The agentgateway dataplane is automatically used when the Gateway references a GatewayClass
682-
// with controllerName: kgateway.dev/agentgateway.
682+
// with controllerName: agentgateway.dev/agentgateway.
683683
type Agentgateway struct {
684684
// Log level for the agentgateway. Defaults to info.
685685
// Levels include "trace", "debug", "info", "error", "warn". See: https://docs.rs/tracing/latest/tracing/struct.Level.html

examples/ai-backend-with-routes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Gateway
33
metadata:
44
name: ai-gateway
55
spec:
6-
gatewayClassName: agentgateway
6+
gatewayClassName: agentgateway-v2
77
listeners:
88
- name: http
99
port: 8080

examples/ai-bedrock-with-prompt-caching.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Gateway
33
metadata:
44
name: ai-gateway
55
spec:
6-
gatewayClassName: agentgateway
6+
gatewayClassName: agentgateway-v2
77
listeners:
88
- name: http
99
port: 8080

install/helm/kgateway-crds/templates/gateway.kgateway.dev_gatewayparameters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ spec:
648648
envoyContainer:
649649
description: |-
650650
Configuration for the container running Envoy.
651-
If the Gateway uses a GatewayClass with controllerName: kgateway.dev/agentgateway,
651+
If the Gateway uses a GatewayClass with controllerName: agentgateway.dev/agentgateway,
652652
the EnvoyContainer values will be ignored.
653653
properties:
654654
bootstrap:

pkg/agentgateway/plugins/testdata/backendpolicy/ai.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ status:
158158
reason: Attached
159159
status: "True"
160160
type: Attached
161-
controllerName: kgateway.dev/agentgateway
161+
controllerName: agentgateway.dev/agentgateway

pkg/agentgateway/plugins/testdata/backendpolicy/mcp-authz-gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ status:
7171
reason: Attached
7272
status: "True"
7373
type: Attached
74-
controllerName: kgateway.dev/agentgateway
74+
controllerName: agentgateway.dev/agentgateway

pkg/agentgateway/plugins/testdata/backendpolicy/mcp-authz-route.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ status:
7171
reason: Attached
7272
status: "True"
7373
type: Attached
74-
controllerName: kgateway.dev/agentgateway
74+
controllerName: agentgateway.dev/agentgateway

pkg/agentgateway/plugins/testdata/backendpolicy/simple.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ status:
9696
reason: PartiallyValid
9797
status: "True"
9898
type: Accepted
99-
controllerName: kgateway.dev/agentgateway
99+
controllerName: agentgateway.dev/agentgateway

0 commit comments

Comments
 (0)