Giter VIP home page Giter VIP logo

Comments (6)

stepanstipl avatar stepanstipl commented on August 29, 2024 1

I'm going to close this, as support for detecting rbac.authorization.k8s.io/v1beta1 as deprecated has now been added and is part of the latest 0.5.0 release. Please give it a go @sotoiwa, and let me know in case there are any issues. Cheers 🎉

from kube-no-trouble.

stepanstipl avatar stepanstipl commented on August 29, 2024

Thanks @sotoiwa, thanks for reporting this. This has been already merged to master in #160. You should be able to test this in the latest nightly pre-release, but the experience may vary as we've added quite a few resources, so before we cut the next release, we're looking to implement some intelligent filtering #130 to display only relevant resources. The groundwork for that has already been done in #139, so this should happen fairly soon.

from kube-no-trouble.

zcicala avatar zcicala commented on August 29, 2024

@stepanstipl It looks like the 160 PR adds the right fixture, but I think the rego should be updated from 1.8 to 1.17

from kube-no-trouble.

stepanstipl avatar stepanstipl commented on August 29, 2024

Hi @zcicala thanks, I originally took the info about this from the Deprecated API Migration Guide, and it seems to be correct -https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.8.md:

The rbac.authorization.k8s.io/v1beta1 API has been promoted to rbac.authorization.k8s.io/v1 with no changes. (#49642, @liggitt)

I think the terminology here is a bit unclear (the version for resources to be removed changed a few times), but the idea of thesince field was to signal from which version is the resource available so that we can recommend it to be upgraded. Arguably I guess we could only list since when it has been deprecated 🤷 . Maybe you have an example that would allow me to better understand?

from kube-no-trouble.

zcicala avatar zcicala commented on August 29, 2024

@stepanstipl Ah,, I think I understand now. I interpreted the since field as the version where this was deprecated.

Where does this project configure the version that an API is deprecate or removed?

from kube-no-trouble.

stepanstipl avatar stepanstipl commented on August 29, 2024

So this is currently not tracked on individual resources, but the rules are grouped by the K8S version when APIs are removed, you can see this in pkg/rules/rego:

$ ls pkg/rules/rego
custom.rego.tmpl        deprecated-1-16.rego    deprecated-1-22.rego    deprecated-1-25.rego

and in the output, it looks like:

...
__________________________________________________________________________________________
>>> Deprecated APIs removed in 1.22 <<<
------------------------------------------------------------------------------------------
...

I hope this makes sense. This might change in future to support some more advanced use-cases (see #154), but that's a bit of an open topic atm.

from kube-no-trouble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.