-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for volume and volume mounts for runners #249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrei-trandafir I have a change request: could you please remove changes to Makefile and instead add a new file, smth like e2e/test-initcontainer-volumes.yaml
, which uses this new fields?
Otherwise, the changes seem OK to me and thanks for adding the Go test 🙂
Thanks for the review @yorugac , i've reverted the Makefile changes and added a new sample k6 file in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrei-trandafir thanks for updates! The yaml test needs a very small update: it fails at the moment, please see the comment.
And one more thing. When trying to deploy from your branch as is, I hit an interesting error about byte limit:
The CustomResourceDefinition "k6s.k6.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
It seems it can be resolved by adding parameter crd:maxDescLen=0
in Makefile. But since you didn't add this parameter as part of PR, I wonder have you encountered this error during your testing?
Co-authored-by: Olha Yevtushenko <yorugac@users.noreply.github.com>
@yorugac thanks for spotting the issue. I probably copied the wrong file 😅 Regards the CRD install, I believe I encountered the issue once and didn't keep the solution in the Makefile in the end.
This avoids using the "last-applied-configuration" annotation from what I understand. |
OK, I see. Actually,
But also, for 'cleaner' solution I think it's better to change |
Added and tested the changes. Everything seems in order 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Seems to work AFAIS 👍
Thanks for the changes 😄
Currently there is no way to add different volume mounts to the runner pod, other than the default one that is created from the script spec. This PR adds support volumes and volume mounts.
The scenario we're aiming to utilise these in is when we're fetching the k6 script(s) and other artifacts from an external source (i.e. S3) through init containers, and copying them to the main containers using a Volume of type EmptyDir.
Closes #250