From edc4318a6a9cd07dff305e0cdff60175ef891015 Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Sun, 20 Feb 2022 05:05:58 -0500 Subject: [PATCH] [sonarr] add metrics config subpath when config has subPath specified (#1419) * Add subPath support for metrics Add subPath entry to the exporter container if the main container has persistence.config.subPath set. --- charts/stable/sonarr/Chart.yaml | 4 ++-- charts/stable/sonarr/README.md | 6 +++--- charts/stable/sonarr/templates/common.yaml | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/charts/stable/sonarr/Chart.yaml b/charts/stable/sonarr/Chart.yaml index a1241c85..f8f6b6e1 100644 --- a/charts/stable/sonarr/Chart.yaml +++ b/charts/stable/sonarr/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v3.0.6.1342 description: Smart PVR for newsgroup and bittorrent users name: sonarr -version: 16.0.0 +version: 16.0.1 kubeVersion: ">=1.16.0-0" keywords: - sonarr @@ -23,4 +23,4 @@ dependencies: annotations: artifacthub.io/changes: | - kind: changed - description: Updated exportarr to v1.0.0 + description: Inherit persistence.config.subPath in metrics exporter diff --git a/charts/stable/sonarr/README.md b/charts/stable/sonarr/README.md index 77b56fff..aaac5f46 100644 --- a/charts/stable/sonarr/README.md +++ b/charts/stable/sonarr/README.md @@ -1,6 +1,6 @@ # sonarr -![Version: 16.0.0](https://img.shields.io/badge/Version-16.0.0-informational?style=flat-square) ![AppVersion: v3.0.6.1342](https://img.shields.io/badge/AppVersion-v3.0.6.1342-informational?style=flat-square) +![Version: 16.0.1](https://img.shields.io/badge/Version-16.0.1-informational?style=flat-square) ![AppVersion: v3.0.6.1342](https://img.shields.io/badge/AppVersion-v3.0.6.1342-informational?style=flat-square) Smart PVR for newsgroup and bittorrent users @@ -100,11 +100,11 @@ N/A ## Changelog -### Version 16.0.0 +### Version 16.0.1 #### Added -N/A +* Supported persistence.config.subPath in metrics exporter #### Changed diff --git a/charts/stable/sonarr/templates/common.yaml b/charts/stable/sonarr/templates/common.yaml index 931b17c3..5f7833cc 100644 --- a/charts/stable/sonarr/templates/common.yaml +++ b/charts/stable/sonarr/templates/common.yaml @@ -29,6 +29,9 @@ additionalContainers: - name: config mountPath: /config readOnly: true + {{ if .Values.persistence.config.subPath }} + subPath: {{ .Values.persistence.config.subPath }} + {{ end }} {{ end }} service: