-
Notifications
You must be signed in to change notification settings - Fork 28
feat(gateway): add Gateway spec.infrastructure.parametersRef support #2653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sandromodarelli
merged 8 commits into
main
from
support-spec-infrastructure-parametersRef-on-gateway
Nov 21, 2025
+814
−27
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
03db6f8
feat(gateway): add Gateway spec.infrastructure.parametersRef support
sandromodarelli f42e039
refactor(gateway): rename getGatewayConfigForGatewayClass to getGatew…
sandromodarelli 8e7a389
test(gateway): add unit tests for merging and retrieving Gateway conf…
sandromodarelli 75ff740
feat(gateway): add sample configuration for per-Gateway infrastructure
sandromodarelli 922dcb0
Merge branch 'main' into support-spec-infrastructure-parametersRef-on…
sandromodarelli a2fd3fd
docs: update CHANGELOG for per-Gateway infrastructure configuration s…
sandromodarelli 5be1a5b
Merge branch 'main' into support-spec-infrastructure-parametersRef-on…
sandromodarelli 598efde
feat(gateway): update sample showing a Gateway with common config and…
sandromodarelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
...g/samples/gateway-hybrid-with-gatewayconfiguration-and-per-gateway-infrastructure_v2.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # GEP-1867: Per-Gateway Infrastructure | ||
| # https://gateway-api.sigs.k8s.io/geps/gep-1867/ | ||
| # This sample demonstrates how to configure a hybrid Kong Gateway with | ||
| # per-Gateway infrastructure using GatewayConfiguration resources. | ||
| # The GatewayConfiguration resource named "common-infra-configuration-kong" defines | ||
| # the control plane connection details for the data plane. | ||
| # The GatewayConfiguration resource named "custom-infra-configuration-kong" | ||
| # defines the infrastructure details for the Gateway with custom settings by | ||
| # setting the source to "Mirror" and specifying the Konnect Control Plane ID. | ||
| --- | ||
| kind: KonnectAPIAuthConfiguration | ||
| apiVersion: konnect.konghq.com/v1alpha1 | ||
| metadata: | ||
| name: konnect-api-auth | ||
| namespace: default | ||
| spec: | ||
| type: token | ||
| token: kpat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
| serverURL: eu.api.konghq.com | ||
| --- | ||
| kind: GatewayConfiguration | ||
| apiVersion: gateway-operator.konghq.com/v2beta1 | ||
| metadata: | ||
| name: common-infra-configuration-kong | ||
| namespace: default | ||
| spec: | ||
| konnect: | ||
| authRef: | ||
| name: konnect-api-auth | ||
| dataPlaneOptions: | ||
| deployment: | ||
| podTemplateSpec: | ||
| spec: | ||
| containers: | ||
| - name: proxy | ||
| # renovate: datasource=docker versioning=docker | ||
| image: kong/kong-gateway:3.12 | ||
| readinessProbe: | ||
| initialDelaySeconds: 1 | ||
| periodSeconds: 1 | ||
| --- | ||
| kind: GatewayClass | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| metadata: | ||
| name: hybrid-kong | ||
| spec: | ||
| controllerName: konghq.com/gateway-operator | ||
| parametersRef: | ||
| group: gateway-operator.konghq.com | ||
| kind: GatewayConfiguration | ||
| name: common-infra-configuration-kong | ||
| namespace: default | ||
| --- | ||
| kind: Gateway | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| metadata: | ||
| name: common-hybrid-kong | ||
| namespace: default | ||
| spec: | ||
| gatewayClassName: hybrid-kong | ||
| listeners: | ||
| - name: http | ||
| protocol: HTTP | ||
| port: 80 | ||
| --- | ||
| kind: GatewayConfiguration | ||
| apiVersion: gateway-operator.konghq.com/v2beta1 | ||
| metadata: | ||
| name: custom-infra-configuration-kong | ||
| namespace: default | ||
| spec: | ||
| konnect: | ||
| source: Mirror | ||
| mirror: | ||
| konnect: | ||
| id: 03b496a0-a38a-4370-8e50-9a9e71cef6df | ||
| --- | ||
| kind: Gateway | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| metadata: | ||
| name: custom-hybrid-kong | ||
| namespace: default | ||
| spec: | ||
| gatewayClassName: hybrid-kong | ||
| infrastructure: | ||
| parametersRef: | ||
| group: gateway-operator.konghq.com | ||
| kind: GatewayConfiguration | ||
| name: custom-infra-configuration-kong | ||
| listeners: | ||
| - name: http | ||
| protocol: HTTP | ||
| port: 80 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.