dalelane opened a new pull request, #1264: URL: https://github.com/apache/flink-kubernetes-operator/pull/1264
This PR depends on #1223, #1259, #1261, #1262, #1263 Please only review the last **3 commits**, prefixed with FLINK-40866 If it helps with reading, you can see a draft PR with just those three commits in my fork at https://github.com/dalelane/flink-kubernetes-operator/pull/5 --- Pending pull requests for [FLIP-611](https://cwiki.apache.org/confluence/spaces/FLINK/pages/451974246/FLIP-611+Running+Flink+jobs+in+MiniCluster+using+the+Kubernetes+Operator): - https://github.com/apache/flink-kubernetes-operator/pull/1223 - https://github.com/apache/flink-kubernetes-operator/pull/1259 - https://github.com/apache/flink-kubernetes-operator/pull/1261 - https://github.com/apache/flink-kubernetes-operator/pull/1262 - https://github.com/apache/flink-kubernetes-operator/pull/1263 --- ## What is the purpose of the change Adds FlinkMiniClusterController, which wires the FlinkMiniCluster observer and reconciler into the operator so that FlinkMiniCluster resources are reconciled end to end. The operator can now deploy a MiniCluster, observe its pod and job, record them in the status, and clean up when the resource is deleted. ## Brief change log The first commit is a non-functional refactoring commit, making the ingress informer event source helper generic so that it can be used for the FlinkMiniCluster kind. The second commit extends the exception cache so that it would handle name collisions between FlinkDeployment and FlinkMiniCluster The third commit adds the controller and registers it with the operator: - the controller follows the FlinkDeployment controller: validate, observe, reconcile, with the same handling of canary resources, unsupported Flink versions, validation errors and deployment failures - the MiniCluster Deployment is watched through a dedicated informer event source, selected by the MiniCluster component label, and Ingresses are watched when the operator manages ingress - StatusRecorder knows the FlinkMiniCluster status class ## Verifying this change This change added tests and can be verified as follows: - Added FlinkMiniClusterControllerTest ## 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? yes - If yes, how is the feature documented? Documenting the new feature will be done in FLINK-40869 --- ##### Was generative AI tooling used to co-author this PR? - [x] Yes (please specify the tool below) Generated-by: Claude Code (Claude Opus 5.5) (commit 6915aa4215e1a0be280c36aabbde29dcdcc52bc1) -- 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]
