kubernetes-client/python

CRD version properties are inadvertently removed when serializing

Open

#2.436 geöffnet am 14. Aug. 2025

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (3.323 Forks)batch import
help wantedkind/bug

Repository-Metriken

Stars
 (6.225 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 10T 3h) (2 gemergte PRs in 30 T)

Beschreibung

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: {}

Contributor Guide