Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat(helm): add annotations support for PVCs (#1270)

Alejandro Pinar Ruiz7df595692036
diff --git a/charts/trek/templates/pvc.yaml b/charts/trek/templates/pvc.yaml
index e1cd5f5c4..b3a069064 100644
--- a/charts/trek/templates/pvc.yaml
+++ b/charts/trek/templates/pvc.yaml
@@ -5,6 +5,10 @@ metadata:
name: {{ include "trek.fullname" . }}-data
labels:
app: {{ include "trek.name" . }}
+ {{- with .Values.persistence.data.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
accessModes:
- ReadWriteOnce
@@ -21,6 +25,10 @@ metadata:
name: {{ include "trek.fullname" . }}-uploads
labels:
app: {{ include "trek.name" . }}
+ {{- with .Values.persistence.uploads.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
accessModes:
- ReadWriteOnce
diff --git a/charts/trek/values.yaml b/charts/trek/values.yaml
index 5ee53a467..3143899fc 100644
--- a/charts/trek/values.yaml
+++ b/charts/trek/values.yaml
@@ -100,9 +100,11 @@ persistence:
size: 1Gi
# Leave empty to use the cluster's default StorageClass; set to bind a specific class.
storageClassName: ""
+ annotations: {}
uploads:
size: 1Gi
storageClassName: ""
+ annotations: {}
resources:
requests: