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

Remove unused fields from @JsonPropertyOrder annotation #10890

Merged

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Nov 29, 2024

Type of change

  • Enhancement / new feature

Description

The @JsonPropertyOrder annotation contains in some cases fields that do not exist - usually as a result of copy-paste errors and similar. This PR removes them.

Originally, I wanted to add support for automatic validation similar to #9831. But it is not easily possible because of CRD versioning that might add or remove fields from different version. So I only cleaned the existing values.

Checklist

  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj added this to the 0.45.0 milestone Nov 29, 2024
@scholzj scholzj requested a review from ppatierno November 29, 2024 17:07
Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj changed the title Improve the @JsonPropertyOrder validation Remove unused fields from @JsonPropertyOrder annotation Nov 29, 2024
@scholzj
Copy link
Member Author

scholzj commented Nov 29, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 03e3045 into strimzi:main Nov 30, 2024
21 checks passed
@scholzj scholzj deleted the improve-the-JsonPropertyOrder-validation branch November 30, 2024 14:25
OwenCorrigan76 pushed a commit to OwenCorrigan76/strimzi-kafka-operator that referenced this pull request Dec 6, 2024
)

Signed-off-by: Jakub Scholz <www@scholzj.com>
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 this pull request may close these issues.

2 participants