dalelane opened a new pull request, #1263: URL: https://github.com/apache/flink-kubernetes-operator/pull/1263
This PR depends on #1223, #1259, #1261, #1262 Please only review the last **4 commits**, prefixed with FLINK-40865 If it helps with reading, you can see a draft PR with just those four commits in my fork at https://github.com/dalelane/flink-kubernetes-operator/pull/4 --- 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 --- ## What is the purpose of the change Adds MiniClusterObserver, which records the observed state of a FlinkMiniCluster in its status. ## Brief change log The first few commits are non-functional refactoring commits to expose existing logic and make it available for use by the new minicluster observer. The result follows the observer of an application FlinkDeployment: - the Deployment of the MiniCluster pod is observed into status.podDeploymentStatus - once the pod is ready, the job, savepoints and checkpoints, and the cluster info are observed through the REST API of the MiniCluster The REST endpoint of a MiniCluster runs in the same process as the job. While the pod restarts the endpoint will be unreachable, so the job is moved to RECONCILING until the API is reachable again. A missing Deployment, a Deployment that is blocked from creating its pod, or a container waiting for some unrecoverable reason (e.g. image pull problem) is an ERROR. Nothing calls this yet, the controller will be added in FLINK-40866 ## Verifying this change This change added tests and can be verified as follows: ## 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? - [ ] Yes (please specify the tool below) -- 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]
