Skip to content

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

@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 <[email protected]>
@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

@azure-pipelines
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
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