diff --git a/README.md b/README.md index 1d30748..165b8a0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ Test suite for verify interoperability of streams components like kafka, flink, etc... managed by operators on kubernetes. +## Requirements +There is several requirements you have to have installed to properly build the project and run the tests: +- Java 17+ +- Helm 3+ + ## Use latest released upstream operators install files Run maven with profile `get-operator-files` to download all operators install files which will be used in test suite. diff --git a/pom.xml b/pom.xml index e69b1b1..f9e86b3 100644 --- a/pom.xml +++ b/pom.xml @@ -40,8 +40,15 @@ 3.13.0 3.7.0 1.9.0 + 3.3.0 true + + operator-install-files + flink + + 0.42.0 + 1.9.0 @@ -284,6 +291,7 @@ + com.googlecode.maven-download-plugin download-maven-plugin @@ -296,8 +304,8 @@ wget - https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.42.0/strimzi-0.42.0.tar.gz - ${basedir}/operator-install-files/ + https://github.com/strimzi/strimzi-kafka-operator/releases/download/${strimzi.version}/strimzi-${strimzi.version}.tar.gz + ${basedir}/${operator.files.destination}/ strimzi.tar.gz true @@ -316,6 +324,93 @@ 2 + + + org.codehaus.mojo + exec-maven-plugin + ${maven.exec.plugin.version} + + + create-dir + generate-sources + + exec + + + sh + + -c + mkdir -p ${basedir}/${operator.files.destination}/${flink.files.destination} + + + + + flink-repo-add + generate-sources + + exec + + + sh + + -c + helm repo add --force-update flink-operator-repo https://downloads.apache.org/flink/flink-kubernetes-operator-${flink.version}/ + + + + + flink-deployment-generate + generate-sources + + exec + + + sh + + -c + helm template flink-kubernetes-operator flink-operator-repo/flink-kubernetes-operator > ${basedir}/${operator.files.destination}/flink/deploy.yaml + + + + + + + com.googlecode.maven-download-plugin + download-maven-plugin + ${maven.download.plugin.version} + + + get-flink-deployment-crd + generate-sources + + wget + + + https://raw.githubusercontent.com/apache/flink-kubernetes-operator/release-${flink.version}/helm/flink-kubernetes-operator/crds/flinkdeployments.flink.apache.org-v1.yml + ${basedir}/${operator.files.destination}/${flink.files.destination}/ + flinkdeployments.flink.apache.org-v1.yml + + + + get-flink-sessionjob-crd + generate-sources + + wget + + + https://raw.githubusercontent.com/apache/flink-kubernetes-operator/release-${flink.version}/helm/flink-kubernetes-operator/crds/flinksessionjobs.flink.apache.org-v1.yml + ${basedir}/${operator.files.destination}/${flink.files.destination}/ + flinksessionjobs.flink.apache.org-v1.yml + + + + + true + false + true + 2 + +