From 0129e51ade404da3c7bb403f34721ecfc428c767 Mon Sep 17 00:00:00 2001 From: Xuzheng Chang Date: Fri, 17 May 2024 17:00:39 +0800 Subject: [PATCH] Bump image to v1.9.0 Signed-off-by: Xuzheng Chang Signed-off-by: Monokaix --- .github/workflows/code_verify.yaml | 2 +- .github/workflows/e2e_spark.yaml | 8 ++++---- Makefile | 4 ++-- Makefile.def | 4 ++-- README.md | 19 ++++++++++--------- hack/check-generated-yaml.sh | 6 +++--- installer/helm/chart/volcano/Chart.yaml | 2 +- installer/helm/chart/volcano/values.yaml | 2 +- installer/volcano-development.yaml | 8 ++++---- ...st.yaml => volcano-monitoring-v1.9.0.yaml} | 0 10 files changed, 28 insertions(+), 27 deletions(-) rename installer/{volcano-monitoring-latest.yaml => volcano-monitoring-v1.9.0.yaml} (100%) diff --git a/.github/workflows/code_verify.yaml b/.github/workflows/code_verify.yaml index dc1d4ea7d6..208cb6a603 100644 --- a/.github/workflows/code_verify.yaml +++ b/.github/workflows/code_verify.yaml @@ -35,7 +35,7 @@ jobs: run: | make lint make verify - make TAG=latest generate-yaml + make TAG=v1.9.0 generate-yaml make verify-generated-yaml make unit-test working-directory: ./src/github.com/${{ github.repository }} diff --git a/.github/workflows/e2e_spark.yaml b/.github/workflows/e2e_spark.yaml index cc35a90200..126ad633c1 100644 --- a/.github/workflows/e2e_spark.yaml +++ b/.github/workflows/e2e_spark.yaml @@ -61,11 +61,11 @@ jobs: - name: Build lastest volcano images run: | eval $(minikube docker-env) - make TAG=latest update-development-yaml - make TAG=latest images + make TAG=v1.9.0 update-development-yaml + make TAG=v1.9.0 images docker images | grep volcano - cat ./installer/volcano-development.yaml | grep image: - minikube kubectl -- replace --force -f ./installer/volcano-development.yaml + cat ./installer/volcano-development.yaml | grep "image: " + sed 's/imagePullPolicy: Always/imagePullPolicy: IfNotPresent/' ./installer/volcano-development.yaml | minikube kubectl -- replace --force -f - - name: Show all K8S pods and nodes run: | # Use minikube kubectl diff --git a/Makefile b/Makefile index e3148e237c..a86a3f8a21 100644 --- a/Makefile +++ b/Makefile @@ -203,8 +203,8 @@ CONTROLLER_GEN=$(shell which controller-gen) endif update-development-yaml: - make generate-yaml TAG=latest RELEASE_DIR=installer - mv installer/volcano-latest.yaml installer/volcano-development.yaml + make generate-yaml TAG=v1.9.0 RELEASE_DIR=installer + mv installer/volcano-v1.9.0.yaml installer/volcano-development.yaml mod-download-go: @-GOFLAGS="-mod=readonly" find -name go.mod -execdir go mod download \; diff --git a/Makefile.def b/Makefile.def index 3cc3dcb51d..02bc136523 100644 --- a/Makefile.def +++ b/Makefile.def @@ -1,9 +1,9 @@ # If tag not explicitly set in users default to the git sha. -TAG ?= $(shell git rev-parse --verify HEAD) +TAG ?= v1.9.0 GitSHA=`git rev-parse HEAD` Date=`date "+%Y-%m-%d %H:%M:%S"` -RELEASE_VER=latest +RELEASE_VER=v1.9.0 LD_FLAGS=" \ -X '${REPO_PATH}/pkg/version.GitSHA=${GitSHA}' \ -X '${REPO_PATH}/pkg/version.Built=${Date}' \ diff --git a/README.md b/README.md index 45e6a15d98..e07573fc3d 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Note: Install Volcano on an existing Kubernetes cluster. This way is both available for x86_64 and arm64 architecture. ``` -kubectl apply -f https://raw.githubusercontent.com/volcano-sh/volcano/master/installer/volcano-development.yaml +kubectl apply -f https://raw.githubusercontent.com/volcano-sh/volcano/release-1.9/installer/volcano-development.yaml ``` Enjoy! Volcano will create the following resources in `volcano-system` namespace. @@ -140,18 +140,19 @@ This way is only available for x86_64 temporarily. If you want to get prometheus and grafana volcano dashboard after volcano installed, try following commands: ```bash -make TAG=latest generate-yaml -kubectl create -f _output/release/volcano-monitoring-latest.yaml +make TAG=v1.9.0 generate-yaml +kubectl create -f _output/release/volcano-monitoring-v1.9.0.yaml ``` ## Kubernetes compatibility -| | Kubernetes 1.17 | Kubernetes 1.18 | Kubernetes 1.19 | Kubernetes 1.20 | Kubernetes 1.21 | Kubernetes 1.22 | Kubernetes 1.23 | Kubernetes 1.24 | Kubernetes 1.25 | Kubernetes 1.26 | Kubernetes 1.27 | Kubernetes 1.28 | Kubernetes 1.29 | -|------------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------| -| Volcano v1.6 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | - | - | - | - | - | -| Volcano v1.7 | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | -| Volcano v1.8 | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | -| Volcano HEAD (master) | - | - | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| | Kubernetes 1.17 | Kubernetes 1.18 | Kubernetes 1.19 | Kubernetes 1.20 | Kubernetes 1.21 | Kubernetes 1.22 | Kubernetes 1.23 | Kubernetes 1.24 | Kubernetes 1.25 | Kubernetes 1.26 | Kubernetes 1.27 | Kubernetes 1.28 | Kubernetes 1.29 | +|-----------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------| +| Volcano v1.6 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | - | - | - | - | - | +| Volcano v1.7 | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | +| Volcano v1.8 | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | +| Volcano v1.9 | - | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | +| Volcano HEAD (master) | - | - | - | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | Key: * `✓` Volcano and the Kubernetes version are exactly compatible. diff --git a/hack/check-generated-yaml.sh b/hack/check-generated-yaml.sh index f3ea3e801a..e305d64e8f 100755 --- a/hack/check-generated-yaml.sh +++ b/hack/check-generated-yaml.sh @@ -21,12 +21,12 @@ set -o pipefail VK_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.. export RELEASE_FOLDER=${VK_ROOT}/${RELEASE_DIR} -if ! diff ${VK_ROOT}/installer/volcano-development.yaml ${RELEASE_FOLDER}/volcano-latest.yaml ; then +if ! diff ${VK_ROOT}/installer/volcano-development.yaml ${RELEASE_FOLDER}/volcano-v1.9.0.yaml ; then { echo echo "The Generated yaml is different from the one in installer/volcano-development.yaml" - echo "please run 'make generate-yaml TAG=latest RELEASE_DIR=installer \ - && mv ${VK_ROOT}/installer/volcano-latest.yaml ${VK_ROOT}/installer/volcano-development.yaml' to update" + echo "please run 'make generate-yaml TAG=v1.9.0 RELEASE_DIR=installer \ + && mv ${VK_ROOT}/installer/volcano-v1.9.0.yaml ${VK_ROOT}/installer/volcano-development.yaml' to update" echo } >&2 false diff --git a/installer/helm/chart/volcano/Chart.yaml b/installer/helm/chart/volcano/Chart.yaml index 93188b2dfa..78194171f8 100644 --- a/installer/helm/chart/volcano/Chart.yaml +++ b/installer/helm/chart/volcano/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: A Helm chart for Volcano name: volcano -version: "1.5" +version: "1.9.0" appVersion: "0.1" icon: https://raw.githubusercontent.com/volcano-sh/charts/master/docs/images/volcano-logo.png home: https://volcano.sh diff --git a/installer/helm/chart/volcano/values.yaml b/installer/helm/chart/volcano/values.yaml index c198bfa9df..dbde4a5ce0 100644 --- a/installer/helm/chart/volcano/values.yaml +++ b/installer/helm/chart/volcano/values.yaml @@ -7,7 +7,7 @@ basic: scheduler_config_file: "config/volcano-scheduler.conf" image_pull_secret: "" image_pull_policy: "Always" - image_tag_version: "latest" + image_tag_version: "v1.9.0" admission_port: 8443 custom: metrics_enable: false diff --git a/installer/volcano-development.yaml b/installer/volcano-development.yaml index 2fa68640f0..83a3f44c2d 100644 --- a/installer/volcano-development.yaml +++ b/installer/volcano-development.yaml @@ -150,7 +150,7 @@ spec: - --port=8443 - -v=4 - 2>&1 - image: volcanosh/vc-webhook-manager:latest + image: volcanosh/vc-webhook-manager:v1.9.0 imagePullPolicy: Always name: admission volumeMounts: @@ -185,7 +185,7 @@ spec: restartPolicy: Never containers: - name: main - image: volcanosh/vc-webhook-manager:latest + image: volcanosh/vc-webhook-manager:v1.9.0 imagePullPolicy: Always command: ["./gen-admission-secret.sh", "--service", "volcano-admission-service", "--namespace", "volcano-system", "--secret", "volcano-admission-secret"] @@ -4033,7 +4033,7 @@ spec: priorityClassName: system-cluster-critical containers: - name: volcano-controllers - image: volcanosh/vc-controller-manager:latest + image: volcanosh/vc-controller-manager:v1.9.0 args: - --logtostderr - --enable-healthz=true @@ -4201,7 +4201,7 @@ spec: priorityClassName: system-cluster-critical containers: - name: volcano-scheduler - image: volcanosh/vc-scheduler:latest + image: volcanosh/vc-scheduler:v1.9.0 args: - --logtostderr - --scheduler-conf=/volcano.scheduler/volcano-scheduler.conf diff --git a/installer/volcano-monitoring-latest.yaml b/installer/volcano-monitoring-v1.9.0.yaml similarity index 100% rename from installer/volcano-monitoring-latest.yaml rename to installer/volcano-monitoring-v1.9.0.yaml