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

overwrite the 'platform' value when 'host-specific' was set #415

Merged
merged 1 commit into from
Jul 6, 2017

Conversation

liangchenye
Copy link
Member

Signed-off-by: liangchenye liangchenye@huawei.com

@liangchenye
Copy link
Member Author

I think 'platform' should be moved to 'validate' sub command, but not the global command.

@@ -33,7 +33,7 @@ oci-runtime-tool is a collection of tools for working with the [OCI runtime spec
Log level (panic, fatal, error, warn, info, or debug) (default: "error").

**--platform**
Platform the tool targets.
Platform the tool targets. It will be overwritten by the host platform if '--host-specific' was set.

Choose a reason for hiding this comment

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

Should we clearly says valid values and default value in manpage?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, updating on it.

…fic' was set

Signed-off-by: liangchenye <liangchenye@huawei.com>
@liangchenye
Copy link
Member Author

updated, PTAL @Mashimiao

@Mashimiao
Copy link

Mashimiao commented Jul 6, 2017

LGTM

Approved with PullApprove

@Mashimiao
Copy link

ping @hqhq @mrunalp

@hqhq
Copy link
Contributor

hqhq commented Jul 6, 2017

LGTM

Approved with PullApprove

@hqhq hqhq merged commit 3a7c1fb into opencontainers:master Jul 6, 2017
@wking
Copy link
Contributor

wking commented Jul 10, 2017 via email

@liangchenye
Copy link
Member Author

I removed it for 'generate command' for two reasons:

  1. I think it is OK for a config file to have both 'Window specific config' or 'Linux specific config'.
    The runtime-spec does not forbid it.
  2. I'm afraid it will be too complicated to have 'platform/template/other single option' in 'generate command'.
    If user want to have 'Windows' configs, I suggest they should:
    1. use 'Windows template'
    2. add 'Windows unique' options so the 'generate' will add 'Window Specific Config' automatically.

@wking
Copy link
Contributor

wking commented Jul 11, 2017 via email

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