Skip to content
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

fix: reuse gc name in GatewayClassObservedGenerationBump conformance #1645

Closed
wants to merge 1 commit into from

Conversation

Xunzhuo
Copy link
Member

@Xunzhuo Xunzhuo commented Jan 13, 2023

Signed-off-by: bitliu bitliu@tencent.com

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


…test

Signed-off-by: bitliu <bitliu@tencent.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 13, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Xunzhuo
Once this PR has been reviewed and has the lgtm label, please assign caseydavenport for approval by writing /assign @caseydavenport in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 13, 2023
Copy link
Member

@robscott robscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work on this @Xunzhuo, added a comment to provide some more context. If I'm understanding correctly, it sounds like a single Envoy Gateway controller can't support multiple GatewayClasses?

/cc @dprotaso
/hold for consensus

@@ -1,7 +1,7 @@
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
metadata:
name: gatewayclass-observed-generation-bump
name: "{GATEWAY_CLASS_NAME}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some previous context here: #1586 (comment). There was also more discussion in the community meeting around that time.

I had 2 main concerns:

  1. I didn't want to allow an existing resource to be mutated by conformance tests
  2. I also wasn't convinced that every implementation would be able to support changes to arbitrary GatewayClasses

Making this change would go against 1 thought it would help with 2.

Eventually we agreed that these could be added if they were guarded by a feature gate and not part of the default test suite. @dprotaso can likely add some more context here as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @robscott! I think EG should support the multiple-GC model, and it makes sence : )

Copy link
Contributor

@dprotaso dprotaso Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this test purposely mutates a second gateway class to test the observed generation is bumped in the status conditions when it is reconciled.

I believe changing the name to the default name GATEWAY_CLASS_NAME will (may?) break other tests since it's clearing params etc.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 13, 2023
@k8s-ci-robot
Copy link
Contributor

@robscott: GitHub didn't allow me to request PR reviews from the following users: dprotaso.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

Thanks for the work on this @Xunzhuo, added a comment to provide some more context. If I'm understanding correctly, it sounds like a single Envoy Gateway controller can't support multiple GatewayClasses?

/cc @dprotaso
/hold for consensus

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@youngnick
Copy link
Contributor

I've opened #1650 to cover updating the implementer's guide with some more info to clarify some of these issues.

@arkodg
Copy link
Contributor

arkodg commented Jan 24, 2023

this shouldn't be needed if #1655 is accepted

@robscott
Copy link
Member

Closing this out now that #1655 has merged, feel free to reopen if I missed anything.

/close

@k8s-ci-robot
Copy link
Contributor

@robscott: Closed this PR.

In response to this:

Closing this out now that #1655 has merged, feel free to reopen if I missed anything.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants