Skip to content

Commit

Permalink
chore: add test for mountSources PVC size calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Obuchowicz <[email protected]>
  • Loading branch information
AObuchow committed Apr 17, 2024
1 parent 6ddb177 commit b497c14
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Uses default PVC size when no volumes define their size but mountSources used"

input:
devworkspaceId: "test-workspaceid"
podAdditions:
containers:
- name: testing-container-1
image: testing-image
volumeMounts:
- name: "projects"
mountPath: "/projects-mountpath"
initContainers:
- name: testing-initContainer-1
image: testing-image

workspace:
components:
- name: testing-container-1
container:
image: testing-image-1
mountSources: true

output:
podAdditions:
containers:
- name: testing-container-1
image: testing-image
volumeMounts:
- name: storage-test-workspaceid
subPath: "projects"
mountPath: "/projects-mountpath"
initContainers:
- name: testing-initContainer-1
image: testing-image

volumes:
- name: storage-test-workspaceid
persistentVolumeClaim:
claimName: storage-test-workspaceid

0 comments on commit b497c14

Please sign in to comment.