From 057a0ddc56f7d6d6811c6e2d1ec0f9e15e6fd720 Mon Sep 17 00:00:00 2001 From: yahel Date: Fri, 29 Sep 2023 00:30:15 +0300 Subject: [PATCH] add pvc annotations --- charts/localstack/templates/pvc.yaml | 3 +++ charts/localstack/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/charts/localstack/templates/pvc.yaml b/charts/localstack/templates/pvc.yaml index 9781146..491e145 100644 --- a/charts/localstack/templates/pvc.yaml +++ b/charts/localstack/templates/pvc.yaml @@ -8,6 +8,9 @@ metadata: {{- include "localstack.labels" . | nindent 4 }} annotations: {{- include "localstack.annotations" . | nindent 4 }} + {{- with .Values.persistence.annotations }} + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} spec: accessModes: {{- if not (empty .Values.persistence.accessModes) }} diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index a61d085..eaddbe7 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -157,6 +157,10 @@ persistence: ## @param persistence.subPath The name of a volume's sub path to mount for persistence ## subPath: "" + ## @param persistence.annotations Annotations to be added to PVC + ## + annotations: {} + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious