Skip to content

Commit 49d5a4f

Browse files
committed
Fix template file locations
1 parent 78ece56 commit 49d5a4f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

charts/sourcegraph-migrator/_helpers/_priorityClassName.tpl renamed to charts/sourcegraph-executor/k8s/templates/_helpers/_priorityClassName.tpl

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{/*
2+
3+
Allow customers to assign a priorityClassName to all resources which create pods (ex. DaemonSets, Deployments, StatefulSets)
4+
5+
Customers can configure an instance-wide default priorty class name at .Values.sourcegraph.priorityClassName,
6+
and can override it for individual services, if needed, at .Values.<service>.priorityClassName
7+
8+
*/}}
9+
10+
{{- define "sourcegraph.priorityClassName" -}}
11+
{{- $top := index . 0 }}
12+
{{- $service := index . 1 }}
13+
{{- $globalPriorityClassName := (index $top.Values "sourcegraph" "priorityClassName") }}
14+
{{- $servicePriorityClassName := (index $top.Values $service "priorityClassName") }}
15+
{{- if $servicePriorityClassName }}
16+
priorityClassName: {{ $servicePriorityClassName | toYaml | trim }}
17+
{{- else if $globalPriorityClassName }}
18+
priorityClassName: {{ $globalPriorityClassName | toYaml | trim }}
19+
{{- end }}
20+
{{- end }}

0 commit comments

Comments
 (0)