-
Notifications
You must be signed in to change notification settings - Fork 737
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
Updated Gateway API from v1alpha2 to v1beta1 #1319
Conversation
@cgrotz thanks for opening this PR! please squash your commits into one, and sign it off. i understand your reasoning, but given where the ecosystem is at, i think it'd be wise to support for v1alpha2 for some more time. cc: @stefanprodan |
d84f25c
to
55cd81a
Compare
Sure, IMHO I was assuming since v1alpha2 is deprecated for some months now, and Contour and GKE switched to v1beta1 that it would be okay to drop v1alpha2. I'll take a look at implementing it backwards compatible later today. |
@cgrotz thanks for this PR. We can't remove the Gateway API v1alpha2 and force Flagger users into upgrading right away. As with SMI, we need to keep the alpha versions around, announce the deprecation and drop support after 6 months. |
I made it backwards compatible, but I had to create a new configuration struct for flaggerv1. I'm also not super fond of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of creating a new struct, lets reuse v1beta.ParentReference
not that i'm aware of, golang doesn't allow references to constants, hence all the aliasing |
@cgrotz lets switch to v1beta1 in CI, could you update the contour version in the e2e tests as well? |
@aryan9600 I changed it to v1beta1.ParentReference thanks for the idea. And updated the contour version to v1.23.0. Gatewayapi test runs for me (on GitHub Actions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linters are failing, please run go fmt ./...
from the root of the project
|
@aryan9600 the linter is still failing, I just ran go fmt again (on the whole folder and the individual files) but it doesn't change the file. What do you recommend? |
are you sure you the command ran properly? this is what i get on my machine:
|
with |
Signed-off-by: Christoph Grotz <grotz@google.com>
updated to go 1.19, now go fmt changed the files @aryan9600 can you rerun the build? I think it should pass now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks a lot @cgrotz 🏅 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @cgrotz 🥇
This introduces v1beta1 and keeps support for v1alpha2.
The e2e testes where updated to Gateway API v1beta1 and Contour v1.23.0.
Fix: #1318