From 7d56882cb0a3db5293e5c0028da6f88e3be436b2 Mon Sep 17 00:00:00 2001 From: JP Flouret Date: Tue, 31 Dec 2024 10:55:47 -0800 Subject: [PATCH] Fix incorrect nesting of liveness and readiness probes (#118) * Fix incorrect nesting of liveness and readiness probes * chore: bump chart version * Fix incorrect generation of empty liveness and readiness probes --------- Co-authored-by: Marshall Asch --- charts/plex-media-server/Chart.yaml | 2 +- charts/plex-media-server/templates/statefulset.yaml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/plex-media-server/Chart.yaml b/charts/plex-media-server/Chart.yaml index e3ca34de..0381637c 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.7.0 +version: 0.7.1 # 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/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index 594ea56d..4d13c7d9 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -118,11 +118,15 @@ spec: - name: NVIDIA_DRIVER_CAPABILITIES value: compute,video,utility {{- end }} - {{- with .Values.pms.resources }} + {{- with .Values.pms.livenessProbe }} livenessProbe: - {{- toYaml .Values.pms.livenessProbe | nindent 10 }} + {{- toYaml . | nindent 10 }} + {{- end }} + {{- with .Values.pms.readinessProbe }} readinessProbe: - {{- toYaml .Values.pms.readinessProbe | nindent 10 }} + {{- toYaml . | nindent 10 }} + {{- end }} + {{- with .Values.pms.resources }} resources: limits: {{- with .limits }}