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

Inexistent objects in swagger aren't verified - API Walker #1

Closed
rikatz opened this issue Jan 7, 2020 · 1 comment
Closed

Inexistent objects in swagger aren't verified - API Walker #1

rikatz opened this issue Jan 7, 2020 · 1 comment

Comments

@rikatz
Copy link
Collaborator

rikatz commented Jan 7, 2020

To the future me:

When you have an API removed from swagger.json it cannot be verified against the API Server, because the normal flow is to check all the deprecated apis from swagger.json and check their existence. If something doesn't exists, we cannot check :(

The solution here is to walk across all the existent resources in the API Server and check if they still exists in swagger.json.

If don't, check if there's some object inside that resource and notify that Object might disappear / stop working in future releases

So the flow will be (using discovery and dynamicclient)

  1. Get all the GroupVersion items
  2. For each GV item, get resources
  3. For each resource, check if its definition exists in the swagger JSON
  4. If that resource doesn't exists in the JSON, check if there're objects inside that Resource
  5. If there're objects, show the objects alerting about the deprecation of that version

alert the user about the nonexistence of that API in the future k8s release

@rikatz
Copy link
Collaborator Author

rikatz commented Jan 8, 2020

Solved in v0.1.0

@rikatz rikatz closed this as completed Jan 8, 2020
cpanato pushed a commit that referenced this issue Sep 4, 2023
Add the option to install using - go install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant