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

Carry 24492: Remove swarm inspect and use info instead #25042

Merged
merged 3 commits into from
Jul 26, 2016

Conversation

tiborvass
Copy link
Contributor

Carrying #24492

Vendored docker/engine-api#334

Closes #24492
Closes #24148

Tibor Vass and others added 2 commits July 25, 2016 20:31
Signed-off-by: Tibor Vass <tibor@docker.com>
Remove the swarm inspect command and use docker info instead to display
swarm information if the current node is a manager.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@mlaventure
Copy link
Contributor

LGTM,

but docker info output is becoming quite large, for readability we may want to consider introducing subcommand to info later on (e,g docker info swarm) to limit the scope of the displayed information. The original docker info would still display everything (easier for issue reporting)

fmt.Fprintf(dockerCli.Out(), " Managers: %d\n", info.Swarm.Managers)
fmt.Fprintf(dockerCli.Out(), " Nodes: %d\n", info.Swarm.Nodes)
fmt.Fprintf(dockerCli.Out(), " Name: %s\n", info.Swarm.Cluster.Spec.Annotations.Name)
fmt.Fprintf(dockerCli.Out(), " Orchestration:\n")
fmt.Fprintf(dockerCli.Out(), " Task History Retention: %d\n", info.Swarm.Cluster.Spec.Orchestration.TaskHistoryRetentionLimit)
Copy link
Contributor

Choose a reason for hiding this comment

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

either "Task History Retention Limit: %d" or "Task History Retention: %d tasks"

@aaronlehmann
Copy link
Contributor

Some minor suggestions, otherwise LGTM.

@stevvooe
Copy link
Contributor

LGTM

@vieux
Copy link
Contributor

vieux commented Jul 26, 2016

LGTM, I agree with @aaronlehmann's suggestions

@tiborvass
Copy link
Contributor Author

@aaronlehmann fixed

@aaronlehmann
Copy link
Contributor

Merge away when CI is ready.

Signed-off-by: Tibor Vass <tibor@docker.com>
@tiborvass
Copy link
Contributor Author

Win2lin has issues, it's unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants