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 Ingress v1beta1 API resource group #1584

Merged
merged 3 commits into from
Jul 23, 2021
Merged

Fix Ingress v1beta1 API resource group #1584

merged 3 commits into from
Jul 23, 2021

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Jul 23, 2021

What this PR does / why we need it:
Changes the API group (URL) for the original v1beta1 Ingress from apiextensions.k8s.io to extensions.

Which issue this PR fixes:
AFAICT this was just wrong originally, and was never caught because integration tests only try against one Ingress version (V1). apiextensions contains the CRD definition, not Ingress. Caught while reviewing permissions differences between v1 and v2.

Notes
First commit is the actual change. Most of the diff is from running generators afer.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

Travis Raines added 2 commits July 23, 2021 11:04
Change the API group for the original v1beta1 Ingress from
apiextensions.k8s.io to extensions. See
https://v1-17.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#ingress-v1beta1-extensions
for reference.

apiextensions.k8s.io is for CRDs instead.
@rainest rainest requested a review from a team as a code owner July 23, 2021 18:25
@rainest rainest temporarily deployed to Configure ci July 23, 2021 18:25 Inactive
@rainest rainest temporarily deployed to Configure ci July 23, 2021 18:27 Inactive
Copy link
Contributor

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

Whoops, good catch 🖖

@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #1584 (85fa0bc) into next (9813575) will increase coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #1584      +/-   ##
==========================================
+ Coverage   51.42%   51.55%   +0.12%     
==========================================
  Files          93       93              
  Lines        8758     8758              
==========================================
+ Hits         4504     4515      +11     
+ Misses       3940     3932       -8     
+ Partials      314      311       -3     
Flag Coverage Δ
integration-test 47.48% <ø> (+0.37%) ⬆️
unit-test 39.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...gun/hack/generators/controllers/networking/main.go 0.00% <ø> (ø)
...trollers/configuration/zz_generated_controllers.go 34.63% <ø> (+2.03%) ⬆️
railgun/internal/ctrlutils/ingress-status.go 64.64% <0.00%> (-1.35%) ⬇️
...n/internal/proxy/clientgo_cached_proxy_resolver.go 81.87% <0.00%> (+1.34%) ⬆️
railgun/internal/ctrlutils/utils.go 95.83% <0.00%> (+2.08%) ⬆️

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 9813575...85fa0bc. Read the comment docs.

@rainest rainest merged commit 7149737 into next Jul 23, 2021
@rainest rainest deleted the fix/ingress-group branch July 23, 2021 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants