Deprecation notices in swagger.json

Hi all,

I have a question to the generated swagger.json file of the kubernetes api:
Deprecated objects have a notice in their description. I saw that multiple objects (which are currently deprecated) do not have a notice there (

e.g. Ingress (deprecated since 1.19; replaced with
policy/v1beta1 PodDisruptionBudget (deprecated since 1.21; replaced with policy/v1)

I want to generate a list of deprecated objects for a deprecation-tool. Is this a bug in the swagger.json or did I search in the wrong place? Is there any other place to generate such a list in an automated fashion?


For all interested folks: I wrote my own parser now to extract the “prerelease-lifecycle-gen” comments in the api-types to detect deprecated api-objects. The generated result-json is located (and updated) here: chekr/k8s_deprecations_generated.json at master · ckotzbauer/chekr · GitHub