Grypse opened a new pull request, #357: URL: https://github.com/apache/flink-kubernetes-operator/pull/357
## What is the purpose of the change This pull request make an improvement for standalone mode to use StatefulSet instead of Deployment to deploy JM and TM to support mount a dynamically-created PersistentVolumeClaim. ## Brief change log - Use StatefulSet to instead of Deployment to depoly JM and TM - Introduce StandaloneKubernetesJobManagerSpecification to encapsulate JM specification info - Add volumeClaimTemplates for JobManagerSpec and TaskManagerSpec - Add JOB_MANAGER_PVC_TEMPLATE and TASK_MANAGER_PVC_TEMPLATE ConfigOption to set jobmanager and taskmanager pvc template file separately. - Modify obersving logical for JM and TM StatefulSet. - Add statefulset rbac. - Modify docs/content/docs/custom-resource/reference.md to describe volumeClaimTemplates settings. - Add standalone cluster example with pvc settings. ## Verifying this change This change is already covered by existing tests, such as . - Modified Fabric8FlinkStandaloneKubeClientTest to adapt StatefulSet creating test. - Modified KubernetesStandaloneClusterDescriptorTest to adapt StatefulSet to test standalone cluster deploying - Modified StandaloneFlinkServiceTest to adapt StatefulSet to test StandaloneFlinkService to deploy standalone cluster. - Modified StandaloneKubernetesJobManagerFactoryTest to adapt StatefulSet to test jobmanager spec. - Modified StandaloneKubernetesTaskManagerFactoryTest to adapt StatefulSet to test taskmanager spec This change added tests and can be verified as follows: - Added TestUtils.buildStandaloneSessionCluster() and TestUtils.buildStandaloneApplicationCluster() for standalone cluster tests. - Added SessionObserverTest.observeStandaloneSessionCluster to verify standalone session cluster observing logical ## 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`: (yes ) - 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? (docs ) -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org