[stable/kube-state-metrics] allow for namespace flag to be configured (#3595)

* [stable/kube-state-metrics] allow for namespace flag to be configured

* add newline to file
This commit is contained in:
Christopher Randles
2018-02-09 13:59:52 -08:00
committed by k8s-ci-robot
parent 089ace589b
commit 5a16f0d6d5
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ keywords:
- metric
- monitoring
- prometheus
version: 0.5.2
version: 0.5.3
appVersion: 1.1.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
@@ -62,6 +62,9 @@ spec:
{{ if .Values.collectors.persistentvolumeclaims }}
- --collectors=persistentvolumeclaims
{{ end }}
{{ if .Values.namespace }}
- --namespace={{ .Values.namespace }}
{{ end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
ports:
+3
View File
@@ -39,3 +39,6 @@ collectors:
cronjobs: true
statefulsets: true
persistentvolumeclaims: true
# Namespace to be enabled for collecting resources. By default all namespaces are collected.
# namespace: ""