Skip to content

Commit

Permalink
Add ability to change access modes (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
estenrye authored Feb 5, 2024
1 parent 7ade943 commit 9ff8439
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft
version: 4.14.0
version: 4.15.0
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/templates/backupdir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{ .Values.mcbackup.persistence.backupDir.accessModes | toYaml | nindent 4 }}
resources:
requests:
storage: {{ .Values.mcbackup.persistence.backupDir.Size | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/templates/datadir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{ .Values.persistence.dataDir.accessModes | toYaml | nindent 4 }}
resources:
requests:
storage: {{ .Values.persistence.dataDir.Size | quote }}
Expand Down
4 changes: 4 additions & 0 deletions charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ persistence:
# Set this to false if you don't care to persist state between restarts.
enabled: false
Size: 1Gi
accessModes:
- ReadWriteOnce
# existingClaim: nil
## specify a subpath in the volume where the data is. Useful when sharing volumes with other apps.
# subPath: /path/to/dataDir
Expand Down Expand Up @@ -523,6 +525,8 @@ mcbackup:
enabled: false
# existingClaim: nil
Size: 1Gi
accessModes:
- ReadWriteOnce
# dnsPolicy: ClusterFirst
# dnsConfig:
# options:
Expand Down

0 comments on commit 9ff8439

Please sign in to comment.