From bb519a877b5bce8d54d4cbe3d6d8de0fad561821 Mon Sep 17 00:00:00 2001 From: Gaston Festari Date: Wed, 10 Jun 2026 12:05:01 -0300 Subject: [PATCH] feat: add httpRoute label support Add additional label support to the HTTPRoute template. --- charts/plex-media-server/Chart.yaml | 2 +- charts/plex-media-server/README.md | 3 ++- charts/plex-media-server/templates/httproute.yaml | 7 +++++-- charts/plex-media-server/values.yaml | 3 +++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/charts/plex-media-server/Chart.yaml b/charts/plex-media-server/Chart.yaml index d3bd7ac7..f2d15450 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: 1.5.0 +version: 1.6.0 # 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 285457f1..314ee587 100644 --- a/charts/plex-media-server/README.md +++ b/charts/plex-media-server/README.md @@ -1,6 +1,6 @@ # plex-media-server -![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.43.0](https://img.shields.io/badge/AppVersion-1.43.0-informational?style=flat-square) +![Version: 1.6.0](https://img.shields.io/badge/Version-1.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.43.0](https://img.shields.io/badge/AppVersion-1.43.0-informational?style=flat-square) **Homepage:** @@ -114,6 +114,7 @@ Before contributing, please read the [Code of Conduct](../../CODE_OF_CONDUCT.md) | httpRoute.annotations | object | `{}` | Custom annotations to put on the HTTPRoute resource | | httpRoute.enabled | bool | `false` | Specify if an HTTPRoute resource for the pms server should be created or not | | httpRoute.hostnames | list | `[]` | Hostnames to match for the HTTPRoute | +| httpRoute.labels | object | `{}` | Custom labels to put on the HTTPRoute resource | | httpRoute.parentRefs | list | `[]` | Gateway API parent references (required when enabled) | | image | object | `{"pullPolicy":"IfNotPresent","registry":"index.docker.io","repository":"plexinc/pms-docker","sha":"","tag":"1.43.0.10492-121068a07"}` | The docker image information for the pms application | | image.registry | string | `"index.docker.io"` | The public dockerhub registry | diff --git a/charts/plex-media-server/templates/httproute.yaml b/charts/plex-media-server/templates/httproute.yaml index 096e4a77..1d9aee86 100644 --- a/charts/plex-media-server/templates/httproute.yaml +++ b/charts/plex-media-server/templates/httproute.yaml @@ -4,11 +4,14 @@ kind: HTTPRoute metadata: name: {{ include "pms-chart.fullname" . }} namespace: {{ .Release.Namespace }} - labels: {{ include "pms-chart.labels" . | nindent 4 }} + labels: + {{- include "pms-chart.labels" . | nindent 4 }} + {{- with .Values.httpRoute.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.httpRoute.annotations }} annotations: {{ toYaml . | nindent 4 }} {{- end }} - spec: {{- with .Values.httpRoute.parentRefs }} parentRefs: {{ toYaml . | nindent 4 }} diff --git a/charts/plex-media-server/values.yaml b/charts/plex-media-server/values.yaml index f6592136..ee3fd57c 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -63,6 +63,9 @@ httpRoute: # -- Custom annotations to put on the HTTPRoute resource annotations: {} + # -- Custom labels to put on the HTTPRoute resource + labels: {} + pms: # -- The storage class to use when provisioning the pms config volume # this needs to be created manually, null will use the default