Skip to content

Commit

Permalink
[kube-prometheus-stack] quote host in alertmanager ingress spec (#4138)
Browse files Browse the repository at this point in the history
* quote host in kube-prometheus-stack alertmanager ingress spec

Signed-off-by: Mohd Sadiq <[email protected]>

* added values yaml in ci

Signed-off-by: Mohd Sadiq <[email protected]>

* add new line in config file

Signed-off-by: Mohd Sadiq <[email protected]>

---------

Signed-off-by: Mohd Sadiq <[email protected]>
  • Loading branch information
msadiq058 authored Jan 11, 2024
1 parent 01165f4 commit 0e959d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 55.7.0
version: 55.7.1
appVersion: v0.70.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alertmanager:
ingress:
enabled: true
hosts:
- "*.test.com"
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
rules:
{{- if .Values.alertmanager.ingress.hosts }}
{{- range $host := .Values.alertmanager.ingress.hosts }}
- host: {{ tpl $host $ }}
- host: {{ tpl $host $ | quote }}
http:
paths:
{{- range $p := $paths }}
Expand Down

0 comments on commit 0e959d3

Please sign in to comment.