Skip to content

feat: add uc machine context#327

Open
miekg wants to merge 7 commits into
psviderski:mainfrom
miekg:miek/26/apr22wo/14
Open

feat: add uc machine context#327
miekg wants to merge 7 commits into
psviderski:mainfrom
miekg:miek/26/apr22wo/14

Conversation

@miekg

@miekg miekg commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

This gets the context from the remote machine and add it to the correct place in your uncloud config.

This gets the context from the remote machine and add it to the correct
place in your uncloud config.

Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg miekg marked this pull request as draft April 22, 2026 14:24
miekg added 4 commits April 22, 2026 16:24
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg

miekg commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author
% ./uc machine context test@uncloud1.vm.science.ru.nl -c bla   
uncloud:
  connections:
    - ssh: test@131.174.88.77
      machine_id: c22073beee04bf9b1861e53c21023d2d
    - ssh: test@131.174.88.78
      machine_id: 212fd73438b53ebfb7dd531da4c6ed41

the context is uncloud because the machine(s) ID already are in that section in my uncloud config

@miekg miekg marked this pull request as ready for review April 22, 2026 16:03
@miekg

miekg commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

where should this be tested? test/e2e/machine_test.go ?

miekg added 2 commits April 23, 2026 07:14
Add context as alias and make main cmd ctx

Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
@miekg miekg closed this May 6, 2026
@miekg miekg deleted the miek/26/apr22wo/14 branch May 6, 2026 09:09
@miekg miekg restored the miek/26/apr22wo/14 branch May 7, 2026 14:06
@miekg miekg reopened this May 7, 2026
@miekg

miekg commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

weird

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.

1 participant