swade1987 / deprek8ion

Rego policies to monitor Kubernetes APIs deprecations.
MIT License
144 stars 15 forks source link

add new 1.19 deprecations #12

Closed ckotzbauer closed 4 years ago

ckotzbauer commented 4 years ago

Add new deprecations in 1.19 (mostly removed in 1.22) https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md

I added these new deprecations to the 1.19 file. I saw, that some deprecations were present there (e.g. admissionregistration.k8s.io/v1beta1). But those are deprecated since 1.16 and not since 1.19 (which is said in the warn-message) and are no longer served from 1.19. Maybe they should be moved to the 1.16 file? I didn't check other files yet...

For context of this question: I wrote a tool (https://github.com/code-chris/k8spolicy) a few weeks ago to automate the validation based on this policies and there's a setting to ignore warnings for a range of k8s-versions (if they are not yet relevant) and this is done via the filename of the policy-file...

swade1987 commented 4 years ago

Awesome work @code-chris these are much appreciated, thanks for being the second contributor. Hope you are finding these useful.