swade1987 / deprek8ion

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

Removal of admissionregistration.k8s.io/v1beta1 has been retargeted to 1.22 #20

Closed cmur2 closed 4 years ago

cmur2 commented 4 years ago

Hi, I was having a look at https://github.com/swade1987/deprek8ion/blob/master/policies/kubernetes-1.19.rego and wanted to learn more about the removal of admissionregistration.k8s.io/v1beta1 but the https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md did not include any mention of that.

Finally I found https://github.com/kubernetes/kubernetes/issues/82021 which tells that this particular removal is now planned for K8s 1.22. I think the policy files should be updated, what do you think?

swade1987 commented 4 years ago

@cmur2 100% we should move these to 1.22 if you have the time PRs are welcome if not I will get to it as soon as possible.

cmur2 commented 4 years ago

@swade1987 ok, did it in https://github.com/swade1987/deprek8ion/pull/22 (I'm not entirely sure about the correct usage of warn vs deny so feel free to improve that)