Skip to content

Commit

Permalink
Merge pull request #1364 from yashvardhan-kukreja/issue-1357/add-supp…
Browse files Browse the repository at this point in the history
…ort-for-extra-args-to-helm

added: support for providing extraArgs via helm to ksm
  • Loading branch information
k8s-ci-robot authored Jan 27, 2021
2 parents 6b3f702 + 6abe48c commit 2446bf1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- monitoring
- prometheus
- kubernetes
version: 2.10.1
version: 2.11.0
appVersion: 1.9.7
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-state-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ spec:
fieldPath: metadata.namespace
{{- end }}
args:
{{ if .Values.extraArgs }}
{{- range .Values.extraArgs }}
- {{ . }}
{{- end }}
{{ end }}
{{ if .Values.collectors.certificatesigningrequests }}
- --collectors=certificatesigningrequests
{{ end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ autosharding:

replicas: 1

# List of additional cli arguments to configure kube-state-metrics
# for example: --enable-gzip-encoding, --log-file, etc.
# all the possible args can be found here: https://github.com/kubernetes/kube-state-metrics/blob/master/docs/cli-arguments.md
extraArgs: []

service:
port: 8080
# Default to clusterIP for backward compatibility
Expand Down

0 comments on commit 2446bf1

Please sign in to comment.