kubernetes-client/python

CRD version properties are inadvertently removed when serializing

開放

#2,436 建立於 2025年8月14日

 (3 則留言) (0 個反應) (1 位負責人)Python (3,323 個分叉)batch import
help wantedkind/bug

倉庫指標

星標
 (6,225 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Summary

I am loading a V1CustomResourceDefinition, making a small modification to it, then re-serializing it, and I am seeing numerous unintended mutations / removals made to the resulting output CRD

Similar defect as:

Details

Here are the sequence of diffs for my CRD:

@@ -17,111 +16,12 @@

   group: mycr.me.com
   names:
     kind: MyCR
-    listKind: MyCRList
     plural: mycrs
     singular: mycr

...

-  ... (Removed additionalPrinterColumns)
-  ... (Removed the entire version schema)
+  - name: v1beta1
+    schema: {}

貢獻者指南