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

Fallback to extensions/v1beta1 for ingress APIs in case of fake CLI #1156

Merged
merged 5 commits into from
Dec 15, 2021

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Dec 14, 2021

Change Overview

While creating ingress manager to interact with ingress resources based on apiVersion, we were failing when fake kubeclient was passed.
This PR tries to default to extensions/v1beta1 in that case.

Pull request type

Please check the type of change your PR introduces:

  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

pkg/kube/ingress/ingressmgr.go Outdated Show resolved Hide resolved
pkg/kube/ingress/ingressmgr.go Outdated Show resolved Hide resolved
@viveksinghggits viveksinghggits changed the title Return early from NewManager if fakeCLI is passed Default to extensions/v1beta1 for ingress APIs in case of fake CLI Dec 15, 2021
@viveksinghggits viveksinghggits changed the title Default to extensions/v1beta1 for ingress APIs in case of fake CLI Fallback to extensions/v1beta1 for ingress APIs in case of fake CLI Dec 15, 2021
@mergify mergify bot merged commit 4e65d7d into master Dec 15, 2021
@mergify mergify bot deleted the ing-mgr-fix branch December 15, 2021 11:05
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

3 participants