Skip to content

Commit

Permalink
Merge pull request #6 from team-carepay/feature/add-support-forPersis…
Browse files Browse the repository at this point in the history
…tentVolumeClaim

Add support for persitent volume caims
  • Loading branch information
virtualroot authored May 1, 2024
2 parents 2c71682 + f302fde commit a474e62
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/structurizr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ keywords:
sources:
- https://structurizr.com/help/on-premises

version: 0.3.0
version: 0.4.0
appVersion: "2024.03.03"
15 changes: 15 additions & 0 deletions charts/structurizr/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.persistence.name }}
spec:
storageClassName: {{ .Values.persistence.storageClass }}
accessModes:
{{- range .Values.persistence.accessModes }}
- {{ . }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- end }}
11 changes: 11 additions & 0 deletions charts/structurizr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ volumeMounts: []
# - name: structurizr-bucket
# mountPath: /usr/local/structurizr

persistence:
enabled: false
name: ""
# -- Specifies the size of the PersistentVolume.
size: 1Gi
# -- Specifies the access mode of the PersistentVolume.
accessModes:
- ReadWriteOnce
# -- Specifies the storage class of the PersistentVolume.
storageClass: ""

# -- Custom properties configuration for Structurizr.
properties: |
# # Your properties content goes here...
Expand Down

0 comments on commit a474e62

Please sign in to comment.