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: Add testsys-image-tag to Test.toml #2653

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

ecpullen
Copy link
Contributor

@ecpullen ecpullen commented Dec 12, 2022

Issue number:

N/A

Description of changes:

Allow users to specify the tag that should be used for testsys image pulls when using an alternate testsys-image-registry. This is especially useful for bottlerocket-test-system when testing new images.

Testing done:

I ran cargo make test on custom testing images with latest tag and verified that the images used by the agent were the ones with the correct tag.

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.

@@ -11,6 +11,9 @@ repo = "default"
# The registry containing alternate TestSys agent images
testsys-images-registry = "public.ecr.aws/bottlerocket-test-system"

# The tag that should be used with `testsys-images-registry` for image pulls
testsys-images-registry = "latest"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we push a "latest" tag for the TestSys images? I don't think we do for the other container images we publish under Bottlerocket, should we follow that rule here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not push to the latest tag. We only push the testsys version. Due to image cacheing in k8s clusters, latest should be used when debugging new images. This feature allows someone testing new agents to specify a tag and a registry instead of explicitly listing each agent.

@ecpullen ecpullen merged commit f915de1 into bottlerocket-os:develop Dec 13, 2022
@ecpullen ecpullen deleted the testsys-image-tag branch December 13, 2022 15:30
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.

4 participants