-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[kube-prometheus-stack] rename additionalPrometheusRules prefix #5245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
apiVersion: v1 | ||
kind: List | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you open to eleminate the list here? |
||
metadata: | ||
name: {{ include "kube-prometheus-stack.fullname" $ }}-additional-prometheus-rules | ||
name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "additional-prometheus-rules" | trunc 63 | trimSuffix "-" }} | ||
namespace: {{ template "kube-prometheus-stack.namespace" . }} | ||
items: | ||
{{- if .Values.additionalPrometheusRulesMap }} | ||
{{- range $prometheusRuleName, $prometheusRule := .Values.additionalPrometheusRulesMap }} | ||
- apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ template "kube-prometheus-stack.name" $ }}-{{ $prometheusRuleName }} | ||
name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) $prometheusRuleName | trunc 63 | trimSuffix "-" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What did you think about if If someone does not like the new name, the has at least the chance to mimic the old behavior. |
||
namespace: {{ template "kube-prometheus-stack.namespace" $ }} | ||
labels: | ||
app: {{ template "kube-prometheus-stack.name" $ }} | ||
|
@@ -27,7 +27,7 @@ items: | |
- apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
name: {{ template "kube-prometheus-stack.name" $ }}-{{ .name }} | ||
name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) .name | trunc 63 | trimSuffix "-" }} | ||
namespace: {{ template "kube-prometheus-stack.namespace" $ }} | ||
labels: | ||
app: {{ template "kube-prometheus-stack.name" $ }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major is okay, but please add a notice in UPGRADING.md