Fix Gateway API test failures after Envoy Gateway 1.5.7 update#2
Draft
Copilot wants to merge 4 commits into
Draft
Fix Gateway API test failures after Envoy Gateway 1.5.7 update#2Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
- Fix misleading panic message in gateway_api.go when Service unmarshal fails - Remove validation for certgenService which is no longer provided by Envoy Gateway 1.5.7 - Add missing resources to test expectations: second ClusterRole, second ClusterRoleBinding, and MutatingWebhookConfiguration Co-authored-by: skoryk-oleksandr <5551658+skoryk-oleksandr@users.noreply.github.com>
Updated all three Gateway API test cases to include the new MutatingWebhookConfiguration resource in their expectations. Co-authored-by: skoryk-oleksandr <5551658+skoryk-oleksandr@users.noreply.github.com>
The certgen ClusterRole and ClusterRoleBinding (with names containing colons) are rendered by the Objects() method and need to be included in test expectations. Co-authored-by: skoryk-oleksandr <5551658+skoryk-oleksandr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix incorrect panic message in gateway API
Fix Gateway API test failures after Envoy Gateway 1.5.7 update
Jan 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The Envoy Gateway 1.5.7 update introduced structural changes including multiple ClusterRoles/ClusterRoleBindings, MutatingWebhookConfigurations, and removed the separate certgen Service. Tests were failing due to outdated expectations and a misleading panic message.
Changes
Fixed misleading panic message in
gateway_api.go"missing certgen Service"to actual error details viafmt.Sprintf("unable to unmarshal %v: %v", kindStr, err)Removed obsolete validation
certgenServicenil check - Envoy Gateway 1.5.7 no longer provides a separate certgen serviceUpdated test expectations in
gateway_api_test.goMutatingWebhookConfiguration(envoy-gateway-topology-injector.tigera-gateway)tigera-gateway-api-gateway-helm-certgen:tigera-gateway)tigera-gateway-api-gateway-helm-certgen:tigera-gateway)All 4 Gateway API tests now pass.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
al.essio.dev/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)get.helm.sh/usr/bin/curl curl -sSf -L --retry 5 -o hack/bin/helm3.tar.gz REDACTED 0.74.0/v1/alertmbash /informers/sched--norc -lang=go1.18 ux_amd64/vet -o 4573809/b933/_pkg_.a pkg/mod/k8s.io/client-go@v0.33.3-ifaceassert ux_amd64/vet -p roller-runtime/p--norc -lang=go1.24 ux_amd64/vet(dns block)go.elastic.co/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)go.googlesource.com/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)go.uber.org/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)go.yaml.in/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)gomodules.xyz/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)google.golang.org/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)gopkg.in/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)howett.net/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)k8s.io/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)sigs.k8s.io/update-job-proxy /update-job-proxy -ifaceassert -nilfunc(dns block)/update-job-proxy /update-job-proxy -o br-6edacd4ad850 -j DOCKER-ISOLATION-STAGE-2 e/vcs/0ab7c7bc964e6f4054247fed3ac8d636309918420efe8a7cabef12d9f9904311/shallow.lock origin /home/dependabot/bin/git REDACTED %H %ct %D dc02a1c6ad6f9333--objects git remo�� e/vcs/66b7b8c8db--exclude-hidden=fetch origin /bin/git REDACTED /usr/lib/systemd--wait est /usr/lib/git-corfilter(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.