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...
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...