Skip to content
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

testsys: Accept custom userdata #2725

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

ecpullen
Copy link
Contributor

Issue number:

N/A

Description of changes:

Enables using custom userdata with cargo make test. Userdata is passed via file and is base64 encoded by the crd_input struct. On the TestSys side, the userdata is merged with the minimal necessary userdata and merged with the same logic as Bottlerocket

Testing done:

Created admin_userdata.toml

[settings.host-containers.admin]
enabled = true

Ran the test

cargo make  -e TESTSYS_USERDATA=admin_userdata.toml test

Verified that the userdata in EC2 console had the new userdata.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@ecpullen ecpullen merged commit 65026b1 into bottlerocket-os:develop Jan 13, 2023
@ecpullen ecpullen deleted the testsys-userdata branch January 13, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants