From 19fbb6da91a051b6bbf30c2f152342c8c47253c1 Mon Sep 17 00:00:00 2001 From: yahel2410 Date: Fri, 29 Sep 2023 09:58:54 +0300 Subject: [PATCH] add pvc annotations (#95) --- 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