From d09b40b90b8db613dbd346e0cd91f70f3950b430 Mon Sep 17 00:00:00 2001 From: roryqi Date: Fri, 18 Nov 2022 21:10:06 +0800 Subject: [PATCH] [INFRA] Add k8s pipeline (#340) ### What changes were proposed in this pull request? Add a github pipeline to run the tests of k8s ### Why are the changes needed? It can help us to verify the k8s patch ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? No Co-authored-by: roryqi --- .github/workflows/parallel.yml | 5 +++++ deploy/kubernetes/build-operator.sh | 5 ++++- deploy/kubernetes/operator/hack/add_header_for_crds.sh | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/parallel.yml b/.github/workflows/parallel.yml index 8cbe9aa4bd..0a79020b0d 100644 --- a/.github/workflows/parallel.yml +++ b/.github/workflows/parallel.yml @@ -63,6 +63,7 @@ jobs: - spark3.2 - spark3.2.0 - mr + - kubernetes fail-fast: false name: -P${{ matrix.profile }} steps: @@ -76,6 +77,10 @@ jobs: java-version: ${{ inputs.java-version }} distribution: ${{ inputs.jdk-distro }} cache: maven + - name: Set up Go 1.16 + uses: actions/setup-go@v3 + with: + go-version: 1.16 - name: Execute maven with -P${{ matrix.profile }} if: ${{ !inputs.experimental }} run: mvn -B -fae -P${{ matrix.profile }} ${{ inputs.maven-args }} | tee /tmp/maven.log diff --git a/deploy/kubernetes/build-operator.sh b/deploy/kubernetes/build-operator.sh index ebccd1cb9d..7fde2d8cd3 100755 --- a/deploy/kubernetes/build-operator.sh +++ b/deploy/kubernetes/build-operator.sh @@ -17,4 +17,7 @@ # limitations under the License. # -echo "Build kubernetes operator..." +echo "Build and Test kubernetes operator..." + +# todo: separate the build process from test process, we need to modify the Makefile +cd operator && make build diff --git a/deploy/kubernetes/operator/hack/add_header_for_crds.sh b/deploy/kubernetes/operator/hack/add_header_for_crds.sh index a1507dcc59..7ec16acf2d 100644 --- a/deploy/kubernetes/operator/hack/add_header_for_crds.sh +++ b/deploy/kubernetes/operator/hack/add_header_for_crds.sh @@ -18,7 +18,6 @@ # set -e -set -o pipefail set -u for filename in config/crd/bases/*.yaml; do