Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

fleetctl: introduce an option --max-print-units - #1664

Closed
dongsupark wants to merge 3 commits into
coreos:masterfrom
endocode:dongsu/fleetctl-max-print-units
Closed

fleetctl: introduce an option --max-print-units#1664
dongsupark wants to merge 3 commits into
coreos:masterfrom
endocode:dongsu/fleetctl-max-print-units

Conversation

@dongsupark

Copy link
Copy Markdown

For users who want to limit number of units to be printed, introduce an option "--max-print-units" for these commands: destroy, unload, stop, list-unit-files, and list-units.

Note that the default value of --max-print-units should be 0, which means "all units are printed", so that the default behavior should remain as before.

Fixes #1593

/cc @kayrus

Dongsu Park added 2 commits August 26, 2016 10:37
For users who want to limit number of units to be printed, introduce an
option "--max-print-units" for these commands:
destroy, unload, stop, list-unit-files, and list-units.

Note that the default value of --max-print-units should be 0, which
means "all units are printed", so that the default behavior should
remain as before.

Fixes coreos#1593
Allow Cluster.WaitForN{UnitFiles,Units,ActiveUnits} to accept opts, an
optional string that contains parameters to be passed to fleetctl.
As it's supposed to be optional, we don't need to modify call sites
of those functions: no opts for WaitFor*() means no opts for
nc.Fleetctl().

It's a preparation for a new test that is supposed to pass
"--max-print-units" option to the fleetctl command.
@dongsupark
dongsupark force-pushed the dongsu/fleetctl-max-print-units branch 4 times, most recently from 0ee5d23 to 7a43073 Compare August 26, 2016 09:48
TestMaxPrintUnits checks if the "--max-print-units" option works
correctly for commands like destroy, unload, stop, list-unit-files,
and list-units.
@dongsupark
dongsupark force-pushed the dongsu/fleetctl-max-print-units branch from 7a43073 to 8b3b501 Compare August 26, 2016 10:08
@dongsupark
dongsupark force-pushed the master branch 2 times, most recently from bdc94e8 to fa5aa3a Compare August 30, 2016 12:26
@jonboulle

Copy link
Copy Markdown
Contributor

NACK, why bake this into fleet? This doesn't affect performance or anything, so can't people just use head?

@dongsupark dongsupark closed this Aug 31, 2016
@dongsupark
dongsupark deleted the dongsu/fleetctl-max-print-units branch September 21, 2016 09:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants