[FLINK-37292] [cdc] Remove the flink-kubernetes dependencies during the packaging of flink-cdc-dist
The Flink-Kubernetes dependency embedded in the packaging of flink-cdc-dist is incompatible with Flink <=1.19.
In Flink 1.20, The constructor of KubernetesClusterDescriptor has added the input parameter KubernetesArtifactUploader. Therefore, it leads to a method conflict of KubernetesClusterDescriptor in the Kubernetes application submission mode. And this parameter doesn't exist in lower Flink versions.
We should exclude it during the packaging process, just like what is done in flink-yarn, to avoid incompatibility issues of flink- with lower versions.
@Mrart @LYanquan @yuxiqian PTAL
Do users need to manually place other k8s dependencies in the Flink lib? If necessary, this operation needs to be explained in the documentation.
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 60 days if no further activity occurs.