Skip to content

Commit

Permalink
clone pvc chart update
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaKhan220 authored and rasheedamir committed Jan 21, 2025
1 parent 9d1a0ac commit 1a852c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions clone-pvc/templates/copy-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ spec:
image: busybox:1.36-glibc
command: ["/bin/sh", "-c", "--"]
args: ["cp -a /old-pv/* /new-pv/"] # Note that this has the limitation of not copying hidden folders/files. Busybox does not support trailing slash syntax to copy the contents of a folder.
resources:
requests:
cpu: 5m
memory: 50Mi
volumeMounts:
- name: old-pv
mountPath: /old-pv
Expand Down
2 changes: 1 addition & 1 deletion clone-pvc/templates/pvc-destination.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
storageClassName: {{ .Values.newPvcStorageClass }}
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.newPvcSize }}
2 changes: 1 addition & 1 deletion clone-pvc/templates/pvc-reclaimer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: PersistentVolumeClaim
metadata:
name: reclaimer
spec:
volumeName: {{ .Values.oldPvName }}
volumeName: {{ .Values.oldPvName }}
storageClassName: {{ .Values.oldStorageClass }}
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit 1a852c6

Please sign in to comment.