-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for storage-provisioner-rancher addon
- Loading branch information
Showing
3 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/integration/testdata/storage-provisioner-rancher/pod.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: test-local-path | ||
labels: | ||
run: test-local-path | ||
spec: | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: busybox | ||
image: busybox:stable | ||
command: ["sh", "-c", "echo 'local-path-provisioner' > /test/file1"] | ||
volumeMounts: | ||
- name: data | ||
mountPath: /test | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: test-pvc |
11 changes: 11 additions & 0 deletions
11
test/integration/testdata/storage-provisioner-rancher/pvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: test-pvc | ||
spec: | ||
storageClassName: local-path | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 64Mi |