-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for volume and volume mounts for runners (#249)
* Add support for volume and volume mounts for runners * Fix formatting * Revert makefile changes and add example k6 job for init container + volume scenario * Update e2e/test-initcontainer-volumes.yaml Co-authored-by: Olha Yevtushenko <[email protected]> * Add maxDescLen=0 to crd options --------- Co-authored-by: Olha Yevtushenko <[email protected]>
- Loading branch information
1 parent
435bb2a
commit b5125f4
Showing
10 changed files
with
2,831 additions
and
3,284 deletions.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,27 @@ | ||
--- | ||
apiVersion: k6.io/v1alpha1 | ||
kind: K6 | ||
metadata: | ||
name: k6-sample-init-container-volume | ||
spec: | ||
parallelism: 1 | ||
script: | ||
localFile: /test/test.js | ||
runner: | ||
volumes: | ||
- emptyDir: {} | ||
name: k6-provision-location | ||
volumeMounts: | ||
- mountPath: /test | ||
name: k6-provision-location | ||
initContainers: | ||
- image: busybox:1.28 | ||
command: | ||
[ | ||
"sh", | ||
"-c", | ||
"cd /test; wget https://raw.githubusercontent.com/grafana/k6-operator/main/e2e/test.js;", | ||
] | ||
volumeMounts: | ||
- mountPath: /test | ||
name: k6-provision-location |
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
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
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
Oops, something went wrong.