mateczagany opened a new pull request, #1193: URL: https://github.com/apache/flink-kubernetes-operator/pull/1193
## What is the purpose of the change The operator currently uses `JobConfigInfo` of Flink 1.20 to deserialize the results of `/jobs/:jobid/config` since [FLINK-35746](https://issues.apache.org/jira/browse/FLINK-35746) but Flink 2.0 removed the required `execution-mode` field, which causes deserialization errors, repeated REST queries, then a timeout. By adding a version-independent DTO to parse the job configuration, Flink 1.x and Flink 2.x responses could be parsed properly. ## Brief change log - Add `CustomJobConfigInfo` and `CustomJobConfigHeaders` classes following existing naming patterns - Remove and move some tests to `CustomJobConfigInfoTest` ## Verifying this change - Added unit tests - Verified that the error logs are no longer present when reconciling Flink 2.x jobs ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changes to the `CustomResourceDescriptors`: no - Core observer or reconciler logic that is regularly executed: yes ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable --- ##### Was generative AI tooling used to co-author this PR? <!-- If generative AI tooling has been used in the process of authoring this PR, please change the checkbox below to `[X]` followed by the name of the tool, and uncomment the "Generated-by" line. See the ASF Generative Tooling Guidance for details: https://www.apache.org/legal/generative-tooling.html You are responsible for the quality and correctness of every change in this PR regardless of the tooling used. Low-effort AI-generated PRs will be closed. See AGENTS.md for the full guidance. --> - [x] Yes (please specify the tool below) <!-- Generated-by: gpt-5.6-sol --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
