Skip to content

Commit 6e871a0

Browse files
authored
feat(pvc): add extra labels on pvcs #793
Signed-off-by: DrummyFloyd <jonathan.monnet28@gmail.com>
1 parent 6ef85d1 commit 6e871a0

5 files changed

Lines changed: 11 additions & 1 deletion

File tree

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 8.4.1
3+
version: 8.5.0
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 32.0.0
66
description: A file sharing server that puts the control and security of your own data back into your hands.

charts/nextcloud/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,14 @@ Nextcloud will *not* delete the PVCs when uninstalling the helm chart.
392392
| ----------------------------------------- | ---------------------------------------------------- | --------------- |
393393
| `persistence.enabled` | Enable persistence using PVC | `false` |
394394
| `persistence.annotations` | PVC annotations | `{}` |
395+
| `persistence.labels` | PVC labels | `{}` |
395396
| `persistence.storageClass` | PVC Storage Class for nextcloud volume | `nil` |
396397
| `persistence.existingClaim` | An Existing PVC name for nextcloud volume | `nil` |
397398
| `persistence.accessMode` | PVC Access Mode for nextcloud volume | `ReadWriteOnce` |
398399
| `persistence.size` | PVC Storage Request for nextcloud volume | `8Gi` |
399400
| `persistence.nextcloudData.enabled` | Create a second PVC for the data folder in nextcloud | `false` |
400401
| `persistence.nextcloudData.annotations` | see `persistence.annotations` | `{}` |
402+
| `persistence.nextcloudData.labels` | see `persistence.labels` | `{}` |
401403
| `persistence.nextcloudData.storageClass` | see `persistence.storageClass` | `nil` |
402404
| `persistence.nextcloudData.existingClaim` | see `persistence.existingClaim` | `nil` |
403405
| `persistence.nextcloudData.accessMode` | see `persistence.accessMode` | `ReadWriteOnce` |

charts/nextcloud/templates/nextcloud-data-pvc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ metadata:
66
name: {{ template "nextcloud.fullname" . }}-nextcloud-data
77
labels:
88
{{- include "nextcloud.labels" ( dict "component" "app" "rootContext" $ ) | nindent 4 }}
9+
{{- with .Values.persistence.nextcloudData.labels }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
912
annotations:
1013
helm.sh/resource-policy: keep
1114
{{- with .Values.persistence.nextcloudData.annotations }}

charts/nextcloud/templates/nextcloud-pvc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: {{ template "nextcloud.fullname" . }}-nextcloud
66
labels:
77
{{- include "nextcloud.labels" ( dict "component" "app" "rootContext" $ ) | nindent 4 }}
8+
{{- with .Values.persistence.labels }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
811
annotations:
912
helm.sh/resource-policy: keep
1013
{{- with .Values.persistence.annotations }}

charts/nextcloud/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ persistence:
703703
# Nextcloud Data (/var/www/html)
704704
enabled: false
705705
annotations: {}
706+
labels: {}
706707
## nextcloud data Persistent Volume Storage Class
707708
## If defined, storageClassName: <storageClass>
708709
## If set to "-", storageClassName: "", which disables dynamic provisioning
@@ -725,6 +726,7 @@ persistence:
725726
nextcloudData:
726727
enabled: false
727728
subPath:
729+
labels: {}
728730
annotations: {}
729731
# storageClass: "-"
730732
# existingClaim:

0 commit comments

Comments
 (0)