Skip to content

Commit

Permalink
[prometheus-snmp-exporter] Extend workload config
Browse files Browse the repository at this point in the history
- Introduce optional revisionHistoryLimit for Deployment / DaemonSet

Signed-off-by: ngc4579 <[email protected]>
  • Loading branch information
ngc4579 committed Apr 25, 2024
1 parent dff13d5 commit 85d202b
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus SNMP Exporter
name: prometheus-snmp-exporter
version: 5.1.1
version: 5.1.2
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 85d202b

Please sign in to comment.