From 220d49f51d1bc7821fe36f79aa056040df61c93d Mon Sep 17 00:00:00 2001 From: Alex Lewis <88301133+ajalewis@users.noreply.github.com> Date: Thu, 12 Oct 2023 04:40:50 +1000 Subject: [PATCH] feat: Add priorityClassName (#91) * feat: Add priorityClassName * Change to quote func Co-authored-by: Gaston Festari --------- Co-authored-by: Alexander Lewis Co-authored-by: Gaston Festari --- charts/plex-media-server/Chart.yaml | 2 +- charts/plex-media-server/README.md | 1 + charts/plex-media-server/templates/statefulset.yaml | 3 +++ charts/plex-media-server/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/plex-media-server/Chart.yaml b/charts/plex-media-server/Chart.yaml index cf176a91..4cae96a2 100644 --- a/charts/plex-media-server/Chart.yaml +++ b/charts/plex-media-server/Chart.yaml @@ -22,7 +22,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.5 +version: 0.1.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/plex-media-server/README.md b/charts/plex-media-server/README.md index 83916b8b..be783b54 100644 --- a/charts/plex-media-server/README.md +++ b/charts/plex-media-server/README.md @@ -116,6 +116,7 @@ The following table lists the configurable parameters of the Pms-chart chart and | `nodeSelector` | | `{}` | | `tolerations` | | `[]` | | `affinity` | | `{}` | +| `priorityClassName` | | `""` | | `commonLabels` | Labels that will be added to all resources created by the chart | `{}` | | `extraEnv` | Environment variables that will be added to the PMS container | `{}` | | `extraVolumeMounts` | Additional volume mount configuration blocks for the pms container | `[]` | diff --git a/charts/plex-media-server/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index 0e968e44..cf0c75ef 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -26,6 +26,9 @@ spec: {{- toYaml .Values.nodeSelector | nindent 8 }} affinity: {{- toYaml .Values.affinity | nindent 8 }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName | quote }} + {{- end }} volumes: - name: pms-transcode emptyDir: {} diff --git a/charts/plex-media-server/values.yaml b/charts/plex-media-server/values.yaml index 4e896685..e8b46c25 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -154,6 +154,8 @@ tolerations: [] affinity: {} +priorityClassName: "" + # Common Labels for all resources created by this chart. commonLabels: {}