Skip to content

Commit

Permalink
Add support to override pod monitor namespace (#372)
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Boissiere <[email protected]>
  • Loading branch information
victorboissiere authored Feb 24, 2021
1 parent adcb3f6 commit b60ec45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/helm/aws-node-termination-handler/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: aws-node-termination-handler
description: A Helm chart for the AWS Node Termination Handler
version: 0.13.3
version: 0.14.0
appVersion: 1.12.0
home: https://github.com/aws/eks-charts
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
Expand Down
1 change: 1 addition & 0 deletions config/helm/aws-node-termination-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Parameter | Description | Default
`podMonitor.interval` | Prometheus scrape interval | `30s`
`podMonitor.sampleLimit` | Number of scraped samples accepted | `5000`
`podMonitor.labels` | Additional PodMonitor metadata labels | `{}`
`podMonitor.namespace` | override podMonitor Helm release namespace | `{{.Release.Namespace}}`

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ template "aws-node-termination-handler.fullname" . }}
{{- if .Values.podMonitor.namespace }}
namespace: {{ .Values.podMonitor.namespace }}
{{- else }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{ include "aws-node-termination-handler.labels" . | indent 4 }}
{{- with .Values.podMonitor.labels }}
Expand Down
3 changes: 3 additions & 0 deletions config/helm/aws-node-termination-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ podMonitor:
sampleLimit: 5000
# Additional labels to add to the metadata
labels: {}
# Specifies whether a pod monitor should be created in a different namespace than
# the Helm release
# namespace: monitoring

# K8s DaemonSet update strategy.
updateStrategy:
Expand Down

0 comments on commit b60ec45

Please sign in to comment.