Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

update to Gateway API v1alpha2 #456

Merged
merged 3 commits into from
Oct 19, 2021

Conversation

skriss
Copy link
Member

@skriss skriss commented Oct 16, 2021

Signed-off-by: Steve Kriss krisss@vmware.com

@skriss skriss requested a review from a team as a code owner October 16, 2021 00:34
@skriss skriss requested review from sunjayBhatia and youngnick and removed request for a team October 16, 2021 00:34
@codecov
Copy link

codecov bot commented Oct 16, 2021

Codecov Report

Merging #456 (7604780) into main (daf21ac) will decrease coverage by 3.57%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #456      +/-   ##
==========================================
- Coverage   80.26%   76.69%   -3.58%     
==========================================
  Files          29       29              
  Lines        2235     2231       -4     
==========================================
- Hits         1794     1711      -83     
- Misses        326      379      +53     
- Partials      115      141      +26     
Impacted Files Coverage Δ
internal/equality/equality.go 71.74% <ø> (+1.26%) ⬆️
internal/operator/scheme.go 27.27% <0.00%> (ø)
internal/operator/operator.go 51.85% <20.00%> (ø)
internal/objects/clusterrole/cluster_role.go 90.17% <100.00%> (ø)
internal/status/status.go 51.35% <0.00%> (-21.63%) ⬇️
internal/objects/contour/finalizer.go 62.50% <0.00%> (-18.75%) ⬇️
internal/controller/controller.go 65.57% <0.00%> (-17.22%) ⬇️
internal/objects/rbac.go 54.76% <0.00%> (-9.53%) ⬇️
internal/objects/configmap/configmap.go 70.88% <0.00%> (-6.33%) ⬇️
internal/objects/job/job.go 76.52% <0.00%> (-5.22%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daf21ac...7604780. Read the comment docs.

@skriss
Copy link
Member Author

skriss commented Oct 16, 2021

This is not passing the upgrade test and won't without some work - mainly due to #438 and a similar issue with the CRD defs themselves (since they've moved groups).

@skriss
Copy link
Member Author

skriss commented Oct 16, 2021

We can either:

  • fix the upgrade test
  • leave the Gateway v1alpha1 CRDs and RBAC in place until after 1.20
  • ignore the test failure
  • something else?

@skriss skriss force-pushed the gatewayapi-v1alpha2 branch 2 times, most recently from 131f739 to e192465 Compare October 16, 2021 00:45
Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss skriss force-pushed the gatewayapi-v1alpha2 branch from e192465 to 39452fb Compare October 16, 2021 00:47
Copy link
Member

@stevesloka stevesloka left a comment

Choose a reason for hiding this comment

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

Ship it!

Signed-off-by: Steve Kriss <krisss@vmware.com>
@skriss
Copy link
Member Author

skriss commented Oct 19, 2021

I disabled the upgrade test in the latest commit. We'll need to address #438 to avoid situations like this in the future. Once we release 1.20, we should be able to re-enable it.

I did manually test an upgrade and confirmed that Contour was upgraded properly and an Ingress continued to route properly. Note that since the Gateway API is moving to a different API group as part of v1alpha2, there is no automated upgrade of those resources from v1alpha1; users will have to manually migrate them.

Signed-off-by: Steve Kriss <krisss@vmware.com>
@sunjayBhatia sunjayBhatia added release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Oct 19, 2021
@stevesloka
Copy link
Member

I did manually test an upgrade and confirmed that Contour was upgraded properly and an Ingress continued to route properly. Note that since the Gateway API is moving to a different API group as part of v1alpha2, there is no automated upgrade of those resources from v1alpha1; users will have to manually migrate them.

I think given the alpha status of the operator this is ok. I'd say merge this and get the tests spun up from this point going forward to make sure things work.

@skriss skriss merged commit 1cd65f0 into projectcontour:main Oct 19, 2021
skriss added a commit to skriss/contour-operator that referenced this pull request Oct 19, 2021
Follow-up to projectcontour#456 to fix linter issues
that were only reported post-merge.

Signed-off-by: Steve Kriss <krisss@vmware.com>
skriss added a commit that referenced this pull request Oct 19, 2021
Follow-up to #456 to fix linter issues
that were only reported post-merge.

Signed-off-by: Steve Kriss <krisss@vmware.com>
knative-prow-robot pushed a commit to knative-extensions/net-gateway-api that referenced this pull request Oct 25, 2021
Since Contour main branch started Gateway API v1alpha2 as
projectcontour/contour-operator#456, this patch changes to pin Contour
version to v1.19.0 which supports Gateway v1alpha1.
@skriss skriss deleted the gatewayapi-v1alpha2 branch December 9, 2021 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants