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 respect JsonIgnore annotation #3686

Closed
andreaTP opened this issue Dec 23, 2021 · 0 comments · Fixed by #3687
Closed

CRD generator doesn't respect JsonIgnore annotation #3686

andreaTP opened this issue Dec 23, 2021 · 0 comments · Fixed by #3687
Assignees
Milestone

Comments

@andreaTP
Copy link
Member

Describe the bug

The CRD generated from a Java class containing JsonIgnored fields still include those properties.

Fabric8 Kubernetes Client version

next (development version)

Steps to reproduce

Define a property like:

    @JsonIgnore
    public int ingored;

in a Java CR class.

Generate the corresponding CRD.

The generated CRD contains:

              ingored:
                type: integer

Expected behavior

Fields marked with JsonIgnore should be ignored by the generator.

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants