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

Enable pod VM image selection via pod annotation #2155

Merged
merged 8 commits into from
Nov 17, 2024

Conversation

bpradipt
Copy link
Member

No description provided.

Allows using a different AMI than the default configured.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Enables using a different image than the one
configured.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Allows using a different docker image than the default configured.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Allows using a different GCP image than the default configured.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Aligning the variable name to other providers to be
consistent.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Allows using a different PowerVS image than the default configured.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

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

LGTM

Ensure the image and expected error message is customisable as it's
different for every provider and makes it easier to reuse for other
providers

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
@bpradipt bpradipt marked this pull request as ready for review November 16, 2024 10:59
@bpradipt bpradipt requested a review from a team as a code owner November 16, 2024 10:59
@bpradipt bpradipt requested a review from snir911 November 16, 2024 10:59
This is a negative test to ensure the functionality of picking up
the AMI from pod annotation works. This doesn't need any AMI
to exist in the region and makes it easier to test in CI.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Copy link
Contributor

@snir911 snir911 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
TBD: Should we add an option to disable image thought annotations?

@bpradipt
Copy link
Member Author

bpradipt commented Nov 17, 2024

LGTM, thanks! TBD: Should we add an option to disable image thought annotations?

This can be done at containerd/crio or in configuration.toml, like any other Kata hypervisor annotations. I don't think it makes sense to duplicate it.

@bpradipt bpradipt closed this Nov 17, 2024
@bpradipt bpradipt reopened this Nov 17, 2024
@bpradipt bpradipt merged commit c2a36c0 into confidential-containers:main Nov 17, 2024
35 checks passed
@bpradipt bpradipt deleted the multiple-images branch November 17, 2024 14:36
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.

3 participants