Skip to content

Commit

Permalink
feat(static-volume): add support
Browse files Browse the repository at this point in the history
  • Loading branch information
joaop221 committed Aug 30, 2024
1 parent 33b3730 commit cca1457
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/v-rising/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.16.0
version: 0.17.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/v-rising/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ This Helm chart provides default values for deploying the v-rising application.
| `persistence.storageClass` | Storage class for persistent volume provisioning (empty in this case). | `""` (empty string) |
| `persistence.accessMode` | Access mode for the persistent volume. | `ReadWriteOnce` |
| `persistence.size` | Size of the persistent volume. | `10Gi` |
| `persistence.existentVolumeName` | Specify existent PV name. | `""` (empty string) |
| `config.TZ` | Timezone for the v-rising application. | `America/Sao_Paulo` |
| `config.VR_NAME` | Name of the v-rising server. | `V Rising Kubernetes` |
| `config.VR_FPS` | Frames per second for the game. | `30` |
Expand Down
15 changes: 9 additions & 6 deletions charts/v-rising/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ metadata:
labels:
{{- include "v-rising.labels" . | nindent 4 }}
spec:
storageClassName: {{ .Values.persistence.storageClass }}
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
storageClassName: {{ .Values.persistence.storageClass }}
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.existentVolumeName }}
volumeName: {{ .Values.persistence.existentVolumeName }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/v-rising/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ persistence:
storageClass: ""
accessMode: "ReadWriteOnce"
size: 10Gi
existentVolumeName: ""

config:
TZ: America/Sao_Paulo
Expand Down

0 comments on commit cca1457

Please sign in to comment.