Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

kata-manager: do not depend on git,go or local repos#829

Merged
jodh-intel merged 1 commit intokata-containers:masterfrom
marcov:better-katamgr
Oct 23, 2018
Merged

kata-manager: do not depend on git,go or local repos#829
jodh-intel merged 1 commit intokata-containers:masterfrom
marcov:better-katamgr

Conversation

@marcov
Copy link
Copy Markdown
Contributor

@marcov marcov commented Oct 19, 2018

Make kata-manager able to run on base non development systems,
where git, golang and kata local repos may not be available.

Fixes: #828

Signed-off-by: Marco Vedovati mvedovati@suse.com

@marcov
Copy link
Copy Markdown
Contributor Author

marcov commented Oct 19, 2018

/cc @grahamwhaley

Copy link
Copy Markdown

@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 @marcov!

lgtm

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cute! :)

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cute! :)

Nit: Minor typo though as this should probably be downloaders_list (missing n)?

Copy link
Copy Markdown

@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 @marcov!

lgtm

Tested successfully.

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

Copy link
Copy Markdown

@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 @marcov!

Tested successfully.

lgtm

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

typeset -r default_config_file="/usr/share/defaults/kata-containers/${config_file_name}"
typeset -r local_config_file="/etc/kata-containers/${config_file_name}"
typeset -r kata_doc_to_script="${test_repo}/.ci/kata-doc-to-script.sh"
typeset -r -A dowloaders_list=([curl]="-fsSL" [wget]="-O -")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cute!

Nit: Typo as this should be downloaders_list presumably (missing n)?

Copy link
Copy Markdown
Contributor

@chavafg chavafg left a comment

Choose a reason for hiding this comment

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

once the minor typo issue is fixed, this l g t m.
Tested on centos and works great 👍

Make kata-manager able to run on base non development systems,
where git, golang and kata local repos may not be available.

Fixes: kata-containers#828

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
@marcov
Copy link
Copy Markdown
Contributor Author

marcov commented Oct 22, 2018

Glad to see this works for you too :)

I guess I can remove the WIP then,, and thanks for spotting the typo.

@marcov marcov changed the title [WIP] kata-manager: do not depend on git,go or local repos kata-manager: do not depend on git,go or local repos Oct 22, 2018
Copy link
Copy Markdown
Contributor

@grahamwhaley grahamwhaley left a comment

Choose a reason for hiding this comment

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

Interesting set of changes - funky use of bash array ;-)
lgtm

@jodh-intel
Copy link
Copy Markdown

/test

@jodh-intel
Copy link
Copy Markdown

Umm, not sure what happened here. I close the issue as I thought this PR was merged but github tells me I closed it?!?

I'm going to merge this with the following justification:

  • We must have a working installation method for new users.
  • @marcov, @chavafg and myself have tested this locally.
  • The kata-manager is only used by users and osbuilder so there is little point letting the CI chug through the PR as the change is effectively a NOP as far as this and the other code repos are concerned.

If there are issues, we can fixup in a follow-up PR. I'm about to re-test once it lands too and will report back here...

@jodh-intel jodh-intel merged commit 51a88ce into kata-containers:master Oct 23, 2018
@jodh-intel
Copy link
Copy Markdown

jodh-intel commented Oct 23, 2018

Tested latest kata-manager using https://github.com/kata-containers/documentation/blob/master/install/installing-with-kata-manager.md on Ubuntu 16.04 and works a treat.

Hopefully, we'll get the automated CI tests on kata-containers/documentation#280 landed "real soon now" :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants