-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
size suggest
command (#221)
- Loading branch information
Showing
8 changed files
with
176 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ coverage.out | |
metalctl | ||
result | ||
tmp | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## metalctl size suggest | ||
|
||
suggest size from a given machine id | ||
|
||
``` | ||
metalctl size suggest <id> [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--description string The description of the suggested size (default "a suggested size") | ||
-h, --help help for suggest | ||
--labels strings labels to add to the size | ||
--machine-id string Machine id used to create the size suggestion. [required] | ||
--name string The name of the suggested size (default "suggested-size") | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--api-token string api token to authenticate. Can be specified with METALCTL_API_TOKEN environment variable. | ||
--api-url string api server address. Can be specified with METALCTL_API_URL environment variable. | ||
-c, --config string alternative config file path, (default is ~/.metalctl/config.yaml). | ||
Example config.yaml: | ||
--- | ||
apitoken: "alongtoken" | ||
... | ||
--debug debug output | ||
--force-color force colored output even without tty | ||
--kubeconfig string Path to the kube-config to use for authentication and authorization. Is updated by login. Uses default path if not specified. | ||
--no-headers do not print headers of table output format (default print headers) | ||
-o, --output-format string output format (table|wide|markdown|json|yaml|template), wide is a table with more columns. (default "table") | ||
--template string output template for template output-format, go template format. | ||
For property names inspect the output of -o json or -o yaml for reference. | ||
Example for machines: | ||
metalctl machine list -o template --template "{{ .id }}:{{ .size.id }}" | ||
--yes-i-really-mean-it skips security prompts (which can be dangerous to set blindly because actions can lead to data loss or additional costs) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [metalctl size](metalctl_size.md) - manage size entities | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters