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

utils: kata-manager: Allow installing kata from a given tarball #8439

Conversation

fidencio
Copy link
Member

With this change, we give the users the change to try kata-containers with their own pre-built tarball.

This will become very useful in the CI context, as we won't be downloading a specific version of kata-containers, but rather installing whatever was built in previous steps of the CI pipeline.

Fixes: #8438

@katacontainersbot katacontainersbot added the size/medium Average sized task label Nov 14, 2023
Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @fidencio - A few comments...

utils/kata-manager.sh Outdated Show resolved Hide resolved
utils/kata-manager.sh Outdated Show resolved Hide resolved
utils/kata-manager.sh Outdated Show resolved Hide resolved
utils/kata-manager.sh Outdated Show resolved Hide resolved
utils/kata-manager.sh Outdated Show resolved Hide resolved
@fidencio fidencio force-pushed the topic/kata-manager-install-a-given-kata-tarball branch from 1530b26 to 9f09f20 Compare November 14, 2023 15:34
@fidencio
Copy link
Member Author

@jodh-intel, all the comments have been addressed, thanks!

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @fidencio - tests fine but one nit you might want to look at. Overall...

lgtm

utils/kata-manager.sh Show resolved Hide resolved
With this change, we give the users the change to try kata-containers
with their own pre-built tarball.

This will become very useful in the CI context, as we won't be
downloading a specific version of kata-containers, but rather installing
whatever was built in previous steps of the CI pipeline.

Fixes: kata-containers#8438

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This was added as part of d4d65be, but
install_kata has never actually used the passed enable_debug var.

With this in mind, let's just remove it.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
@fidencio fidencio force-pushed the topic/kata-manager-install-a-given-kata-tarball branch from 9f09f20 to 1699b84 Compare November 14, 2023 16:34
@fidencio
Copy link
Member Author

/test

Copy link
Member

@beraldoleal beraldoleal left a comment

Choose a reason for hiding this comment

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

Thanks. Useful. lgtm

@fidencio
Copy link
Member Author

/test-arm-unit

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. Thanks

@wainersm
Copy link
Contributor

Interesting I never used the kata-manager.sh. Has it always been a first class citizen and I didn't know? or are you perhaps trying to bring it back to life?

@fidencio
Copy link
Member Author

Interesting I never used the kata-manager.sh. Has it always been a first class citizen and I didn't know? or are you perhaps trying to bring it back to life?

It existed but I'd say it was never a first class citizen. My plan, together with @jodh-intel, is to:

  • Make this the way to install Kata Containers via curl https://get.katacontainers.io | sh - ...
  • Use this as part of all the tests

But there's still work to be done on this front. :-)

@fidencio fidencio merged commit 8002de8 into kata-containers:main Nov 20, 2023
143 of 149 checks passed
@jodh-intel
Copy link
Contributor

jodh-intel commented Nov 21, 2023

@wainersm - It's been used for the "Install a complete Kata system with a single command" use-case for a few years now. See https://github.com/kata-containers/kata-containers/tree/main/docs/install#automatic-installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/medium Average sized task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kata-manager | Add an option to install any given kata-static-tarball
6 participants