Skip to content

Conversation

@pleshakov
Copy link
Contributor

Proposed changes

Previously, NGINX Gateway only supported a single Gateway resource
that must have had 'nginx-gateway/gateway' namespace/name.

This PR removes that hard-corded requirement: Now NGINX Gateway will
select the Gateway resource among all resources that belong to
NGINX Gateway (i.e. reference NGINX Gateway corresponding GatewayClass).
In case of multiple Gateway resources, NGINX Gateway will use a
deterministic conflict resolution strategy: it will choose the oldest
resource based on the creation timestamp. If the timestamps are equal,
NGINX Gateway will chose the resource that appears alphabetically first
based on its namespace and then name.

@pleshakov pleshakov force-pushed the feature/multiple-gateways branch from 0a2e932 to 8001f15 Compare July 8, 2022 22:58
Previously, NGINX Gateway only supported a single Gateway resource
that must have had 'nginx-gateway/gateway' namespace/name.

This commit removes that hard-corded requirement: Now NGINX Gateway will
select the Gateway resource among all resources that belong to
NGINX Gateway (i.e. reference NGINX Gateway corresponding GatewayClass).
In case of multiple Gateway resources, NGINX Gateway will use a
deterministic conflict resolution strategy: it will choose the oldest
resource based on the creation timestamp. If the timestamps are equal,
NGINX Gateway will chose the resource that appears alphabetically first
based on its namespace and then name.
@pleshakov pleshakov force-pushed the feature/multiple-gateways branch from 8001f15 to 65ee71d Compare July 8, 2022 23:01
@kate-osborn kate-osborn mentioned this pull request Jul 12, 2022
6 tasks
@pleshakov pleshakov requested a review from kate-osborn July 14, 2022 00:42
@pleshakov pleshakov requested a review from f5yacobucci July 15, 2022 17:59
@pleshakov pleshakov merged commit 157c011 into main Jul 18, 2022
@pleshakov pleshakov deleted the feature/multiple-gateways branch July 18, 2022 16:35
@pleshakov pleshakov restored the feature/multiple-gateways branch August 9, 2022 17:12
@lucacome lucacome deleted the feature/multiple-gateways branch August 16, 2022 18:03
@lucacome lucacome restored the feature/multiple-gateways branch August 16, 2022 18:03
@lucacome lucacome added the enhancement New feature or request label Aug 16, 2022
@pleshakov pleshakov deleted the feature/multiple-gateways branch September 9, 2022 18:07
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
Previously, NGINX Gateway only supported a single Gateway resource
that must have had 'nginx-gateway/gateway' namespace/name.

This commit removes that hard-corded requirement: Now NGINX Gateway will
select the Gateway resource among all resources that belong to
NGINX Gateway (i.e. reference NGINX Gateway corresponding GatewayClass).
In case of multiple Gateway resources, NGINX Gateway will use a
deterministic conflict resolution strategy: it will choose the oldest
resource based on the creation timestamp. If the timestamps are equal,
NGINX Gateway will chose the resource that appears alphabetically first
based on its namespace and then name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants