Repository navigation
Switch connected machines #78
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
Open
Gerrit91
wants to merge
2
commits into
main
Choose a base branch
from
switch-connected-machines
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,34 @@ | ||
| ## metalctlv2 admin housekeeping | ||
|
|
||
| execute housekeeping commands | ||
|
|
||
| ### Synopsis | ||
|
|
||
| housekeeping commands are usually as cronjobs in the control-plane | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for housekeeping | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-token string the token used for api requests | ||
| --api-url string the url to the metal-stack.io api | ||
| -c, --config string alternative config file path, (default is ~/.metal-stack/config.yaml) | ||
| --debug debug output | ||
| --force-color force colored output even without tty | ||
| -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. | ||
| --timeout duration request timeout used for api requests | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [metalctlv2 admin](metalctlv2_admin.md) - admin commands | ||
| * [metalctlv2 admin housekeeping machine-liveliness](metalctlv2_admin_housekeeping_machine-liveliness.md) - execute machine liveliness housekeeping | ||
| * [metalctlv2 admin housekeeping machine-resurrect](metalctlv2_admin_housekeeping_machine-resurrect.md) - execute machine resurrect housekeeping | ||
| * [metalctlv2 admin housekeeping machine-vpn-connected](metalctlv2_admin_housekeeping_machine-vpn-connected.md) - execute machine vpn connected housekeeping | ||
|
|
35 changes: 35 additions & 0 deletions
35
docs/admin/metalctlv2_admin_housekeeping_machine-liveliness.md
This file contains hidden or 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,35 @@ | ||
| ## metalctlv2 admin housekeeping machine-liveliness | ||
|
|
||
| execute machine liveliness housekeeping | ||
|
|
||
| ### Synopsis | ||
|
|
||
| updates the liveleness of all machines, only the modified machines are returned | ||
|
|
||
| ``` | ||
| metalctlv2 admin housekeeping machine-liveliness [flags] | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for machine-liveliness | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-token string the token used for api requests | ||
| --api-url string the url to the metal-stack.io api | ||
| -c, --config string alternative config file path, (default is ~/.metal-stack/config.yaml) | ||
| --debug debug output | ||
| --force-color force colored output even without tty | ||
| -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. | ||
| --timeout duration request timeout used for api requests | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [metalctlv2 admin housekeeping](metalctlv2_admin_housekeeping.md) - execute housekeeping commands | ||
|
|
35 changes: 35 additions & 0 deletions
35
docs/admin/metalctlv2_admin_housekeeping_machine-resurrect.md
This file contains hidden or 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,35 @@ | ||
| ## metalctlv2 admin housekeeping machine-resurrect | ||
|
|
||
| execute machine resurrect housekeeping | ||
|
|
||
| ### Synopsis | ||
|
|
||
| tries to resurrect machines which are not allocated but not in waiting state by forcing a restart, only machines where a restart was triggered are returned | ||
|
|
||
| ``` | ||
| metalctlv2 admin housekeeping machine-resurrect [flags] | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for machine-resurrect | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-token string the token used for api requests | ||
| --api-url string the url to the metal-stack.io api | ||
| -c, --config string alternative config file path, (default is ~/.metal-stack/config.yaml) | ||
| --debug debug output | ||
| --force-color force colored output even without tty | ||
| -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. | ||
| --timeout duration request timeout used for api requests | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [metalctlv2 admin housekeeping](metalctlv2_admin_housekeeping.md) - execute housekeeping commands | ||
|
|
35 changes: 35 additions & 0 deletions
35
docs/admin/metalctlv2_admin_housekeeping_machine-vpn-connected.md
This file contains hidden or 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,35 @@ | ||
| ## metalctlv2 admin housekeeping machine-vpn-connected | ||
|
|
||
| execute machine vpn connected housekeeping | ||
|
|
||
| ### Synopsis | ||
|
|
||
| updates the vpn connection details of machines which have vpn configured, only the modified machines are returned | ||
|
|
||
| ``` | ||
| metalctlv2 admin housekeeping machine-vpn-connected [flags] | ||
| ``` | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for machine-vpn-connected | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-token string the token used for api requests | ||
| --api-url string the url to the metal-stack.io api | ||
| -c, --config string alternative config file path, (default is ~/.metal-stack/config.yaml) | ||
| --debug debug output | ||
| --force-color force colored output even without tty | ||
| -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. | ||
| --timeout duration request timeout used for api requests | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [metalctlv2 admin housekeeping](metalctlv2_admin_housekeeping.md) - execute housekeeping commands | ||
|
|
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iljarotar I am not sure about this? And should there really be two queries in this request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think we should remove the
ConnectedMachineIdfrom the query.