kubernetes-client / kubernetes-client/python

CRD version properties are inadvertently removed when serializing

Open
#2,436 3 comments 0 reactions 1 assignee Claimed by @Urvashi0109 View on GitHub
help wanted kind/bug
Dominant language
Python
Stars
7.7k
Forks
3.5k
Avg merge
1d 14h
Merged PRs (30d)
18

Description

## 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:
- https://github.com/kubernetes-client/python/issues/2435

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.