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

Improve IsResAvailableInGroupVersion to handle non running api servers #1460

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

viveksinghggits
Copy link
Contributor

Change Overview

In the cases where there are some api resources that are being served by the agg api server and the api servers are not running, IsResAvailableInGroupVersion would fail with an error. That results into some problems if we are calling this for native resources or for the other resources that are being served correctly.
This PR makes sure that we are not failing in the cases where the agg api server is not able to serve some of the resources.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

Thanks for submitting this pull request 🎉. The team will review it soon and get back to you.

If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.

@infraq infraq added this to In Progress in Kanister Jun 7, 2022
@viveksinghggits
Copy link
Contributor Author

thanks @ankitjain235 for the suggestion.

Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

pkg/kube/discover.go Outdated Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Jun 7, 2022
@mergify mergify bot merged commit 5de51df into master Jun 7, 2022
@mergify mergify bot deleted the ingmgr-improve branch June 7, 2022 22:37
Kanister automation moved this from Reviewer approved to Done Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants