Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRD generator doesn't handle correctly JsonNode type #3683

Closed
andreaTP opened this issue Dec 23, 2021 · 0 comments · Fixed by #3684 or #3691
Closed

CRD generator doesn't handle correctly JsonNode type #3683

andreaTP opened this issue Dec 23, 2021 · 0 comments · Fixed by #3684 or #3691
Labels
Milestone

Comments

@andreaTP
Copy link
Member

Describe the bug

The CRD generator produce an empty object for fields with type JsonNode.

Fabric8 Kubernetes Client version

next (development version)

Steps to reproduce

Generate the CRD for a class containing a field like:

public JsonNode configuration;

the output is:

              configuration:
                type: object

Expected behavior

the expected output should be:

              configuration:
                type: object
                x-kubernetes-preserve-unknown-fields: true

Runtime

Kubernetes (vanilla), other (please specify in additional context)

Kubernetes API Server version

1.22.3@latest

Environment

other (please specify in additional context)

Fabric8 Kubernetes Client Logs

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment