generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chart): allow configuration of k8s scheduling priority
fix: quote priorityClassName Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> fix: default priorityClass name to .fullname Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> fix: default priorityClass name to .fullname Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> Update charts/nfs-server-provisioner/templates/statefulset.yaml Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> chore: bump chart version Update charts/nfs-server-provisioner/templates/statefulset.yaml Co-authored-by: Andrei Kvapil <kvapss@gmail.com>
- Loading branch information
1 parent
8d83498
commit 42c3923
Showing
5 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
charts/nfs-server-provisioner/templates/priorityclass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.priorityClass.create -}} | ||
kind: PriorityClass | ||
apiVersion: scheduling.k8s.io/v1 | ||
metadata: | ||
name: {{ .Values.priorityClass.name | default (include "nfs-provisioner.fullname" .) }} | ||
labels: | ||
app: {{ include "nfs-provisioner.name" . }} | ||
chart: {{ include "nfs-provisioner.chart" . }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
value: {{ .Values.priorityClass.value }} | ||
globalDefault: false | ||
description: "This priority class should be used for nfs-provisioner pods only." | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters