From e54846cef80038d54c0cb4e61c0130ba61626db6 Mon Sep 17 00:00:00 2001 From: asifdxtreme Date: Tue, 14 May 2019 14:47:44 +0530 Subject: [PATCH] Rename scheduler to kube-batch --- Makefile | 6 +++--- cmd/{scheduler => kube-batch}/main.go | 0 installer/chart/volcano/values.yaml | 2 +- installer/dockerfile/{scheduler => kube-batch}/Dockerfile | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename cmd/{scheduler => kube-batch}/main.go (100%) rename installer/dockerfile/{scheduler => kube-batch}/Dockerfile (90%) diff --git a/Makefile b/Makefile index 3477a5afd13..25bb4215fcb 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ init: mkdir -p ${BIN_DIR} kube-batch: init - go build -ldflags ${LD_FLAGS} -o=${BIN_DIR}/kube-batch ./cmd/scheduler + go build -ldflags ${LD_FLAGS} -o=${BIN_DIR}/vk-kube-batch ./cmd/kube-batch vk-controllers: init go build -ldflags ${LD_FLAGS} -o=${BIN_DIR}/vk-controllers ./cmd/controllers @@ -33,12 +33,12 @@ vkctl: init image_bins: go get github.com/mitchellh/gox CGO_ENABLED=0 gox -osarch=${REL_OSARCH} -ldflags ${LD_FLAGS} -output ${BIN_DIR}/${REL_OSARCH}/vkctl ./cmd/cli - for name in controllers scheduler admission; do\ + for name in controllers kube-batch admission; do\ CGO_ENABLED=0 gox -osarch=${REL_OSARCH} -ldflags ${LD_FLAGS} -output ${BIN_DIR}/${REL_OSARCH}/vk-$$name ./cmd/$$name; \ done images: image_bins - for name in controllers scheduler admission; do\ + for name in controllers kube-batch admission; do\ cp ${BIN_DIR}/${REL_OSARCH}/vk-$$name ./installer/dockerfile/$$name/; \ docker build --no-cache -t $(IMAGE_PREFIX)-$$name:$(TAG) ./installer/dockerfile/$$name; \ rm installer/dockerfile/$$name/vk-$$name; \ diff --git a/cmd/scheduler/main.go b/cmd/kube-batch/main.go similarity index 100% rename from cmd/scheduler/main.go rename to cmd/kube-batch/main.go diff --git a/installer/chart/volcano/values.yaml b/installer/chart/volcano/values.yaml index 3a2fcc61aa8..41137671ebc 100644 --- a/installer/chart/volcano/values.yaml +++ b/installer/chart/volcano/values.yaml @@ -1,7 +1,7 @@ basic: image_tag_version: "latest" controller_image_name: "volcanosh/vk-controllers" - scheduler_image_name: "volcanosh/vk-scheduler" + scheduler_image_name: "volcanosh/vk-kube-batch" admission_image_name: "volcanosh/vk-admission" admission_secret_name: "volcano-admission-secret" image_pull_secret: "" diff --git a/installer/dockerfile/scheduler/Dockerfile b/installer/dockerfile/kube-batch/Dockerfile similarity index 90% rename from installer/dockerfile/scheduler/Dockerfile rename to installer/dockerfile/kube-batch/Dockerfile index 8b8d6d640d3..616c6e16fe7 100644 --- a/installer/dockerfile/scheduler/Dockerfile +++ b/installer/dockerfile/kube-batch/Dockerfile @@ -15,5 +15,5 @@ FROM alpine:latest -ADD vk-scheduler /vk-scheduler -ENTRYPOINT ["/vk-scheduler"] +ADD vk-kube-batch /vk-kube-batch +ENTRYPOINT ["/vk-kube-batch"]