Skip to content

Commit b60ec45

Browse files
Add support to override pod monitor namespace (#372)
Signed-off-by: Victor Boissiere <[email protected]>
1 parent adcb3f6 commit b60ec45

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

config/helm/aws-node-termination-handler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: aws-node-termination-handler
33
description: A Helm chart for the AWS Node Termination Handler
4-
version: 0.13.3
4+
version: 0.14.0
55
appVersion: 1.12.0
66
home: https://github.com/aws/eks-charts
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png

config/helm/aws-node-termination-handler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Parameter | Description | Default
7878
`podMonitor.interval` | Prometheus scrape interval | `30s`
7979
`podMonitor.sampleLimit` | Number of scraped samples accepted | `5000`
8080
`podMonitor.labels` | Additional PodMonitor metadata labels | `{}`
81+
`podMonitor.namespace` | override podMonitor Helm release namespace | `{{.Release.Namespace}}`
8182

8283
### AWS Node Termination Handler - Queue-Processor Mode Configuration
8384

config/helm/aws-node-termination-handler/templates/podmonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ apiVersion: monitoring.coreos.com/v1
33
kind: PodMonitor
44
metadata:
55
name: {{ template "aws-node-termination-handler.fullname" . }}
6+
{{- if .Values.podMonitor.namespace }}
7+
namespace: {{ .Values.podMonitor.namespace }}
8+
{{- else }}
69
namespace: {{ .Release.Namespace }}
10+
{{- end }}
711
labels:
812
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
913
{{- with .Values.podMonitor.labels }}

config/helm/aws-node-termination-handler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ podMonitor:
175175
sampleLimit: 5000
176176
# Additional labels to add to the metadata
177177
labels: {}
178+
# Specifies whether a pod monitor should be created in a different namespace than
179+
# the Helm release
180+
# namespace: monitoring
178181

179182
# K8s DaemonSet update strategy.
180183
updateStrategy:

0 commit comments

Comments
 (0)