Skip to content

Commit

Permalink
[prometheus-snmp-exporter] Extend workload config (#4488)
Browse files Browse the repository at this point in the history
* [prometheus-snmp-exporter] Extend workload config

- Introduce optional revisionHistoryLimit for Deployment / DaemonSet

Signed-off-by: ngc4579 <distant.calls@gmail.com>

* Update charts/prometheus-snmp-exporter/Chart.yaml

Signed-off-by: Tom Walker <walker.thomas.p@gmail.com>

---------

Signed-off-by: ngc4579 <distant.calls@gmail.com>
Signed-off-by: Tom Walker <walker.thomas.p@gmail.com>
Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
  • Loading branch information
ngc4579 and walker-tom committed Apr 26, 2024
1 parent 2a448c6 commit 9c41858
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-snmp-exporter/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus SNMP Exporter
name: prometheus-snmp-exporter
version: 5.1.1
version: 5.2.0
appVersion: v0.25.0
home: https://github.com/prometheus/snmp_exporter
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-snmp-exporter/templates/daemonset.yaml
Expand Up @@ -122,4 +122,7 @@ spec:
{{- with .Values.extraVolumes }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/prometheus-snmp-exporter/templates/deployment.yaml
Expand Up @@ -129,4 +129,7 @@ spec:
{{- with .Values.extraVolumes }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.revisionHistoryLimit }}
revisionHistoryLimit: {{ . }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/prometheus-snmp-exporter/values.yaml
Expand Up @@ -132,6 +132,10 @@ envFrom: []
# name: name-of-secret

replicas: 1

# Uncomment to set a specific revisionHistoryLimit. Defaults to 10 as per Kubernetes API if not set.
# revisionHistoryLimit: 3

## Monitors ConfigMap changes and POSTs to a URL
## Ref: https://github.com/jimmidyson/configmap-reload
##
Expand Down

0 comments on commit 9c41858

Please sign in to comment.