diff --git a/charts/keep/Chart.yaml b/charts/keep/Chart.yaml index 6ab97ae..58c4986 100644 --- a/charts/keep/Chart.yaml +++ b/charts/keep/Chart.yaml @@ -1,10 +1,10 @@ apiVersion: v2 name: keep -version: 0.1.42 +version: 0.1.45 description: Keep Helm Chart type: application icon: https://platform.keephq.dev/_next/image?url=%2Fkeep.png&w=48&q=75 -appVersion: 0.29.3 +appVersion: 0.30.7 deprecated: false annotations: app: keep diff --git a/charts/keep/templates/db-pvc.yaml b/charts/keep/templates/db-pvc.yaml index 0c5b2dd..dc567ca 100644 --- a/charts/keep/templates/db-pvc.yaml +++ b/charts/keep/templates/db-pvc.yaml @@ -6,14 +6,18 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ $pvcName }} + annotations: + {{- if .Values.database.pvc.retain }} + helm.sh/resource-policy: keep + {{- end }} spec: - accessModes: - - ReadWriteOnce {{- if $existingPvc }} # Use existing PVC spec {{- toYaml $existingPvc.spec | nindent 2 }} {{- else }} # Define new PVC spec + accessModes: + - ReadWriteOnce {{- if .Values.database.pvc.storageClass }} storageClassName: {{ .Values.database.pvc.storageClass }} {{- end }} diff --git a/charts/keep/values.yaml b/charts/keep/values.yaml index fb84515..9506210 100644 --- a/charts/keep/values.yaml +++ b/charts/keep/values.yaml @@ -267,6 +267,7 @@ database: enabled: true size: 5Gi storageClass: "" + retain: false image: repository: mysql pullPolicy: IfNotPresent