Skip to content

Commit

Permalink
add scheduler-name field in chart file to configuration custome sched…
Browse files Browse the repository at this point in the history
…uler name

Signed-off-by: rongfu.leng <lenronfu@gmail.com>
  • Loading branch information
lengrongfu committed Oct 11, 2024
1 parent 7dfa8c6 commit 49a1916
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installer/helm/chart/volcano/templates/admission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ spec:
- --admission-conf=/admission.local.config/configmap/{{base .Values.basic.admission_config_file}}
- --webhook-namespace={{ .Release.Namespace }}
- --webhook-service-name={{ .Release.Name }}-admission-service
{{- if .Values.basic.scheduler_name }}
- --scheduler-name={{ .Values.basic.scheduler_name }}
{{- end }}
- --enable-healthz=true
- --logtostderr
- --port={{.Values.basic.admission_port}}
Expand Down
3 changes: 3 additions & 0 deletions installer/helm/chart/volcano/templates/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ spec:
- --logtostderr
- --enable-healthz=true
- --leader-elect={{ .Values.custom.leader_elect_enable }}
{{- if .Values.basic.scheduler_name }}
- --scheduler-name={{ .Values.basic.scheduler_name }}
{{- end }}
{{- if .Values.custom.leader_elect_enable }}
- --leader-elect-resource-namespace={{ .Release.Namespace }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions installer/helm/chart/volcano/templates/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ spec:
args:
- --logtostderr
- --scheduler-conf=/volcano.scheduler/{{base .Values.basic.scheduler_config_file}}
{{- if .Values.basic.scheduler_name }}
- --scheduler-name={{ .Values.basic.scheduler_name }}
{{- end }}
- --enable-healthz=true
- --enable-metrics=true
- --leader-elect={{ .Values.custom.leader_elect_enable }}
Expand Down
1 change: 1 addition & 0 deletions installer/helm/chart/volcano/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ basic:
admission_secret_name: "volcano-admission-secret"
admission_config_file: "config/volcano-admission.conf"
scheduler_config_file: "config/volcano-scheduler.conf"
scheduler_name: "volcano"
image_pull_secret: ""
image_pull_policy: "Always"
image_tag_version: "latest"
Expand Down
3 changes: 3 additions & 0 deletions installer/volcano-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ spec:
- --admission-conf=/admission.local.config/configmap/volcano-admission.conf
- --webhook-namespace=volcano-system
- --webhook-service-name=volcano-admission-service
- --scheduler-name=volcano
- --enable-healthz=true
- --logtostderr
- --port=8443
Expand Down Expand Up @@ -4357,6 +4358,7 @@ spec:
- --logtostderr
- --enable-healthz=true
- --leader-elect=false
- --scheduler-name=volcano
- -v=4
- 2>&1
imagePullPolicy: Always
Expand Down Expand Up @@ -4527,6 +4529,7 @@ spec:
args:
- --logtostderr
- --scheduler-conf=/volcano.scheduler/volcano-scheduler.conf
- --scheduler-name=volcano
- --enable-healthz=true
- --enable-metrics=true
- --leader-elect=false
Expand Down

0 comments on commit 49a1916

Please sign in to comment.