Skip to content

Commit e461f6f

Browse files
authored
Merge pull request #60 from SQLJames/feature/pvc-labels
adding dynamic labels to the pvc
2 parents 06901fe + da54a5b commit e461f6f

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
### V2.0.4
4+
5+
#### Non-Breaking Changes
6+
7+
- Added new PVC labels - Thank you ohnoitsyou
8+
39
### V2.0.3
410

511
#### Non-Breaking Changes

charts/factorio-server-charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sources:
2020
# This is the chart version. This version number should be incremented each time you make changes
2121
# to the chart and its templates, including the app version.
2222
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23-
version: 2.0.3
23+
version: 2.0.4
2424

2525
# This is the version number of the application being deployed. This version number should be
2626
# incremented each time you make changes to the application. Versions are not expected to

charts/factorio-server-charts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ If you do run into any issues with mods, I will try to work with you on finding
236236
| `persistence.dataDir.existingClaim` | The name of an existing PVC to use for persistence | |
237237
| `persistence.storageClassName` | Persistent Volume storage class | `""` |
238238
| `persistence.annotations` | Persistent Volume Claim annotations | `{}` |
239+
| `persistence.lables` | Persistent Volume Claim labels | `{}` |
239240
240241
### Factorio Parameters
241242

charts/factorio-server-charts/templates/datadir-pvc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
name: {{ template "factorio-server-charts.fullname" . }}-datadir
77
labels:
88
app: "{{ template "factorio-server-charts.fullname" . }}-{{ .Chart.Version }}"
9+
{{- range $key, $val := .Values.persistence.labels }}
10+
{{ $key }}: {{ $val | quote }}
11+
{{- end}}
912
{{- if .Values.persistence.annotations }}
1013
annotations:
1114
{{ toYaml .Values.persistence.annotations | indent 4 }}

charts/factorio-server-charts/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ affinity: {}
106106
## @extra persistence.dataDir.existingClaim The name of an existing PVC to use for persistence
107107
## @param persistence.storageClassName Persistent Volume storage class
108108
## @param persistence.annotations Persistent Volume Claim annotations
109+
## @param persistence.labels Persistent Volume Claim labels
109110
## Sets the data persistence volume configuration
110111
## IMPORTANT: If you do not setup a PV all your savegames will be lost on pod recreation or helm upgrade
111112
persistence:
@@ -118,6 +119,8 @@ persistence:
118119
storageClassName: ""
119120
## If you have annotations to spin up a PV i.e. the location. Remove the curly braces
120121
annotations: {}
122+
## If you have additional labels to apply to the volume
123+
labels: {}
121124

122125

123126
#### Factorio application configuration ####

0 commit comments

Comments
 (0)