Skip to content

Enhance Java generation from CRDs to ignore unknown properties #5432

@mikebell90

Description

@mikebell90

Is your enhancement related to a problem? Please describe

We are generating a huge number of Pojos from a set of CRDs. Recently the CRds were updated and added some more properties. While there's argument either way, it would nice to be ignore added properties

aused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "numIncludedHosts" (class io.solo.gloo.policy.resilience.v2.TrimProxyConfigPolicyStatus), not marked as ignorable (2 known properties: "common", "numSelectedWorkloads"])
 at [Source: (BufferedInputStream); line: 1, column: 2846] (through reference chain: io.fabric8.kubernetes.api.model.DefaultKubernetesResourceList["items"]->java.util.ArrayList[0]-

As you can see they added numIncludedHosts

Describe the solution you'd like

A way to ignore these, ideally on a targeted basis

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions