Skip to content

Commit 64f4770

Browse files
committed
Add a note about ignoring /watch/ paths
Signed-off-by: kazk <[email protected]>
1 parent b452340 commit 64f4770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

k8s-pb-codegen/openapi/transform.jq

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def gvk_string: [.group, .version, .kind] | map(select(. != "")) | join("/");
4848
.key as $path |
4949
.value |
5050
to_entries[] |
51-
# Only process path infos with GVK (methods) and ignore deprecated.
51+
# Only process path infos with GVK (methods) and ignore deprecated `/watch/` paths that doesn't fit the pattern.
5252
.value["x-kubernetes-group-version-kind"]? as $gvk |
53-
select($gvk != null and (.value.description | test("deprecated: "; "i") | not)) |
53+
select($gvk != null and (.value.description | test("deprecated: use the 'watch'"; "i") | not)) |
5454
# Use group and version from path to group by because subresource's GVK might be different.
5555
# e.g., `autoscale/v1` in `apps/v1`.
5656
(

0 commit comments

Comments
 (0)