Comments (6)
I should also mention that some of the deprecated resources being returned were in fact created using the latest api version (e.g. apps/v1 for Deployments) but are still shown as deprecated (e.g. extensions/v1beta1 for Deployments) by kubepug.
Seems like the same issue related to how kubepug is requesting the resource and how the k8s api server marshalls between api versions depending on the client's request.
from kubepug.
@codescalar tks for raising this issue!
I'll take a look during this week and the next. The program makes a map of all existing objects in the current swagger and checks which have the 'deprecated' text in their description, trying to get them and so yes, this might happen. Didn't realize that the API could return all of them even if the stable object also exists :)
I'll figure out a way to correlate them and if the object exists both in the stable and the deprecated API remove it from the output :)
Thank you!
from kubepug.
from kubepug.
Hey @codescalar 👋
Just passing here to let you know that I didn't forgot about this. I was refactoring the whole thing here to allow input files and then dealing with this also became easier :)
I'll probably solve this next weekend.
Thank you
from kubepug.
Thanks @rikatz!
from kubepug.
Well, the guessing here is pretty "hard" as I need to cross between each deprecated object and if it exists in some different API :/
I'm thinking about using the discovery library to feed the API with another struct containing all the preferred names and when something from swagger.json is found, check if there's that same resource name as an stable version.
The final movement is to check if the list length of objects containing the deprecated objects is the same length of the list of objects with the maybe preferred name and assume everything is fine :)
Let me see if this works, will need some testing here because IMO it's worst having a false negative than a false positive in this case :)
from kubepug.
Related Issues (20)
- EKS cluster authentication issue HOT 1
- Pipe manifests to stdin for enhanced CI experience
- GitHub Actions formatter HOT 3
- Kubepug 2.0 - Planning
- policy/v1beta1 PodDisruptionBudget resources not reported HOT 2
- externaldns.k8s.io/v1alpha1 DNSEndpoint reported as deleted HOT 3
- CSIStorageCapacity deprecation not found HOT 3
- Use Kubernetes API markers as inputs
- Aggregated apiserver APIs are marked as removed HOT 3
- No output when using 1.6.0 HOT 5
- Is there a way to check upstream helm chart? HOT 1
- data.json hosted on Github HOT 2
- Standard output messes up prompt
- Move doc CI build to website repo HOT 1
- Documentation should show how to use kubepug installed by krew
- Deprecated/Removed Pod Security Policy not found
- CVE-2023-44487 HOT 1
- Add option to silence footer STDOUT
- Kubepug not showing any deprecated or removed API when checking a v1.24 cluster upgrading to v1.25 HOT 4
- Completions for kubectl-deprecations?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubepug.