Skip to content

Commit

Permalink
use one command of helm install
Browse files Browse the repository at this point in the history
Signed-off-by: lowang-bh <lhui_wang@163.com>
  • Loading branch information
lowang-bh committed Jul 21, 2023
1 parent 53cce5d commit 154f8e9
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 31 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,4 @@ coverage.txt
vendor

# helm dependency files
installer/helm/chart/volcano/charts/
installer/helm/chart/volcano/requirements.lock
6 changes: 3 additions & 3 deletions hack/generate-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fi
# Step2. update helm templates from config dir
HELM_TEMPLATES_DIR=${VK_ROOT}/installer/helm/chart/volcano/templates
HELM_VOLCANO_CRD_DIR=${VK_ROOT}/installer/helm/chart/volcano/crd
HELM_JOBFLOW_CRD_DIR=${VK_ROOT}/installer/helm/chart/jobflow/crd
HELM_JOBFLOW_CRD_DIR=${VK_ROOT}/installer/helm/chart/volcano/charts/jobflow/crd
VOLCANO_CRD_DIR=${VK_ROOT}/config/crd/volcano
JOBFLOW_CRD_DIR=${VK_ROOT}/config/crd/jobflow
echo Updating templates in $HELM_TEMPLATES_DIR
Expand Down Expand Up @@ -124,7 +124,7 @@ fi
cat ${VK_ROOT}/installer/namespace.yaml > ${DEPLOYMENT_FILE}

# Volcano
${HELM_BIN_DIR}/helm dependency update ${VK_ROOT}/installer/helm/chart/volcano
# ${HELM_BIN_DIR}/helm dependency update ${VK_ROOT}/installer/helm/chart/volcano
${HELM_BIN_DIR}/helm template ${VK_ROOT}/installer/helm/chart/volcano --namespace volcano-system \
--name-template volcano --set basic.image_tag_version=${VOLCANO_IMAGE_TAG} --set basic.crd_version=${CRD_VERSION}\
-s templates/admission.yaml \
Expand All @@ -139,7 +139,7 @@ ${HELM_BIN_DIR}/helm template ${VK_ROOT}/installer/helm/chart/volcano --namespac
>> ${DEPLOYMENT_FILE}

# JobFlow
${HELM_BIN_DIR}/helm template ${VK_ROOT}/installer/helm/chart/jobflow --namespace volcano-system \
${HELM_BIN_DIR}/helm template ${VK_ROOT}/installer/helm/chart/volcano/charts/jobflow --namespace volcano-system \
--name-template volcano --set basic.image_tag_version=${VOLCANO_IMAGE_TAG} --set basic.crd_version=${CRD_VERSION}\
-s templates/flow_v1alpha1_jobflows.yaml \
-s templates/flow_v1alpha1_jobtemplates.yaml \
Expand Down
24 changes: 0 additions & 24 deletions installer/helm/chart/jobflow/Chart.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions installer/helm/chart/volcano/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: v1
description: A Helm chart for Volcano
name: volcano
version: 1.5
appVersion: 0.1
version: "1.5"
appVersion: "0.1"
icon: https://raw.githubusercontent.com/volcano-sh/charts/master/docs/images/volcano-logo.png
home: https://volcano.sh
sources:
- https://github.com/volcano-sh/volcano
dependencies:
- name: jobflow
version: "1.0.0"
repository: "file://../jobflow"
repository: "file://../charts/jobflow"
maintainers:
- name: k82cn
email: klaus1982.cn@gmail.com
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions installer/helm/chart/volcano/charts/jobflow/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
appVersion: "0.1"
description: A Helm chart for Volcano-Job-flow
name: jobflow
type: application
version: 1.0.0
File renamed without changes.

0 comments on commit 154f8e9

Please sign in to comment.