diff --git a/charts/kube-prometheus-stack/Chart.yaml b/charts/kube-prometheus-stack/Chart.yaml index b4d06070c067..8e29128f2008 100644 --- a/charts/kube-prometheus-stack/Chart.yaml +++ b/charts/kube-prometheus-stack/Chart.yaml @@ -23,7 +23,7 @@ name: kube-prometheus-stack sources: - https://github.com/prometheus-community/helm-charts - https://github.com/prometheus-operator/kube-prometheus -version: 58.4.0 +version: 58.4.1 appVersion: v0.73.2 kubeVersion: ">=1.19.0-0" home: https://github.com/prometheus-operator/kube-prometheus diff --git a/charts/kube-prometheus-stack/templates/_helpers.tpl b/charts/kube-prometheus-stack/templates/_helpers.tpl index 731e3e0d2cb0..3bd3bc87690b 100644 --- a/charts/kube-prometheus-stack/templates/_helpers.tpl +++ b/charts/kube-prometheus-stack/templates/_helpers.tpl @@ -58,11 +58,12 @@ The longest name that gets created adds and extra 37 characters, so truncation s {{- end }} {{/* ThanosRuler custom resource instance name */}} +{{/* Subtracting 1 from 26 truncation of kube-prometheus-stack.fullname */}} {{- define "kube-prometheus-stack.thanosRuler.crname" -}} {{- if .Values.cleanPrometheusOperatorObjectNames }} {{- include "kube-prometheus-stack.fullname" . }} {{- else }} -{{- print (include "kube-prometheus-stack.fullname" .) "-thanos-ruler" -}} +{{- print (include "kube-prometheus-stack.fullname" . | trunc 25 | trimSuffix "-") "-thanos-ruler" -}} {{- end }} {{- end }}