Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issue 685 persisting silences in alertmanager #1069

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions charts/operator/templates/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ spec:
secret:
secretName: alertmanager
- name: alertmanager-data
{{- if .Values.alertManager.persistence.enabled }}
persistentVolumeClaim:
claimName: alertmanager-data
{{- else }}
emptyDir: {}
{{- end }}
- name: alertmanager-config
emptyDir: {}
affinity:
Expand Down Expand Up @@ -170,3 +175,23 @@ spec:
seccompProfile:
type: RuntimeDefault
serviceName: alertmanager
{{- if .Values.alertManager.persistence.enabled }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: alertmanager-data
spec:
accessModes:
{{- toYaml .Values.alertManager.persistence.accessModes | nindent 4 }}
resources:
requests:
storage: {{ .Values.alertManager.persistence.size }}
{{- if .Values.alertManager.persistence.storageClass }}
{{- if (eq "none" .Values.alertManager.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.alertManager.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/values.global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,12 @@ ruleEvaluator:
serviceAccount:
create: true
name: rule-evaluator
alertManager:
persistence:
enabled: false
## Define the storageClassName for the PVC for dynamic provisioning.
## if set to "none" the PVC will be created without a storage class and use the default storage class if one is specified by cluster administrators.
storageClass: "none"
size: 50Mi
accessModes:
- ReadWriteOnce