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

Remove Ingress API selection code #4643

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Sep 11, 2023

What this PR does / why we need it:

Removes the Ingress API selection code and just honor the flag. There were no options other than networking/v1 and nothing after #3867. Nothing should not occur in practice for standard APIs, and the code actually selecting that probably means something has gone wrong.

Ditto for the IngressClass controller.

Special notes for your reviewer:

Also adds the changelog for #4641, since I forgot to check that when reviewing it.

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

@rainest rainest force-pushed the chore/ingress-controller-selection branch 2 times, most recently from 7d18f84 to bd94cd5 Compare September 11, 2023 18:25
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 86.1% and project coverage change: +0.1% 🎉

Comparison is base (0e04e18) 68.0% compared to head (24a50c5) 68.1%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #4643     +/-   ##
=======================================
+ Coverage   68.0%   68.1%   +0.1%     
=======================================
  Files        163     162      -1     
  Lines      19091   19028     -63     
=======================================
- Hits       12992   12974     -18     
+ Misses      5331    5285     -46     
- Partials     768     769      +1     
Files Changed Coverage Δ
internal/cmd/rootcmd/run.go 19.0% <0.0%> (-2.1%) ⬇️
internal/controllers/crds/dynamic_controller.go 73.8% <33.3%> (+56.3%) ⬆️
internal/manager/run.go 55.6% <70.2%> (+2.3%) ⬆️
internal/manager/controllerdef.go 99.4% <100.0%> (+0.5%) ⬆️
internal/manager/setup.go 75.5% <100.0%> (ø)

... and 5 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Remove Ingress API selection in favor of simply honoring the CLI disable
flag.

Support for Ingress versions other than networking/v1 was removed in
#3867. The API
selection code was only selecting between networking/v1 and nothing.
Future Kubernetes versions are not expected to abruptly remove the older
API versions if they introduce new Ingress versions, so this selection
code should not be necessary in the future.
@rainest rainest force-pushed the chore/ingress-controller-selection branch from bd94cd5 to 24a50c5 Compare September 11, 2023 18:47
@rainest rainest marked this pull request as ready for review September 11, 2023 19:31
@rainest rainest requested a review from a team as a code owner September 11, 2023 19:31
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

I wanted to add this change, then I thought that we might reuse it somehow but in the end I think it'd be better to just revert the change and base anything that we'd want off of that

@pmalek pmalek added this to the KIC v2.12.0 milestone Sep 12, 2023
@randmonkey randmonkey merged commit 064bf4e into main Sep 12, 2023
35 checks passed
@randmonkey randmonkey deleted the chore/ingress-controller-selection branch September 12, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants