---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: hermes-elasticsearch
spec:
  annotations:
    "helm.sh/resource-policy": keep
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: {{.Values.hermes_elasticsearch_data_volumesize}}

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: hermes-elasticsearch
spec:
  annotations:
    "helm.sh/resource-policy": keep
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      # size storage so that the retention kicks in at 70% of capacity consumption
      storage: {{ div (mul .Values.hermes_elasticsearch_data_retention 100) 70 -}}Gi

Revert "hermes: new var for es storage"
Revert "hermes: new var for es storage"

This reverts commit 0e797d05df6e969323f382abff6dbba41bef2491.
In an incident and don't want to over complicate it. Will move to branch
