Skip to content

CRD version properties are inadvertently removed when serializing #2436

Description

@whatsacomputertho

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

Metadata

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions