kairos-io / kairos

:penguin: The immutable Linux meta-distribution for edge Kubernetes.
https://kairos.io
Apache License 2.0
1.08k stars 94 forks source link

:bug: `kairos register` output is dirty #1251

Closed mauromorales closed 1 year ago

mauromorales commented 1 year ago

Dirty output (this is for the 2.0 rc release)

zeno% ./kairos-cli register --config ./config.yaml --device auto ~/Pictures/kairos3.png                              
Sending registration payload, please wait
2023/04/04 23:33:48 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details.
Not enough nodes
map[]
Not enough nodes
map[healthcheck:map[12D3KooWPa3uoaFDVszwPrELAmriHtxEqfeGEqK2ox71gBuhwoQD:"2023-04-04T21:33:54Z" 12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:"2023-04-04T21:33:51Z"] pairing:map[12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:"ok" data:{"cc":"#cloud-config\nusers:\n  - name: kairos\n    passwd: kairos\n","device":"auto"}] presence:map[12D3KooWPa3uoaFDVszwPrELAmriHtxEqfeGEqK2ox71gBuhwoQD:"" 12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:""]]
Pairing in progress
map[healthcheck:map[12D3KooWPa3uoaFDVszwPrELAmriHtxEqfeGEqK2ox71gBuhwoQD:"2023-04-04T21:33:54Z" 12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:"2023-04-04T21:33:51Z"] pairing:map[12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:"ok" data:{"cc":"#cloud-config\nusers:\n  - name: kairos\n    passwd: kairos\n","device":"auto"}] presence:map[12D3KooWPa3uoaFDVszwPrELAmriHtxEqfeGEqK2ox71gBuhwoQD:"" 12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw:""]]
Active 12D3KooWPa3uoaFDVszwPrELAmriHtxEqfeGEqK2ox71gBuhwoQD
Active 12D3KooWRFhnDq5EeCzRiHKEKGSp2cAnkSCjXPxvnVw54KVmFnuw
Payload sent, installation will start on the machine briefly

Let's remove the map[] prints

jimmykarily commented 1 year ago

First PR: https://github.com/kairos-io/go-nodepair/pull/12

jimmykarily commented 1 year ago

I'll bump go-nodepair in provider-kairos as part of this: https://github.com/kairos-io/provider-kairos/pull/306 because I've already done the work to bump edgevpn and all.

Update: Done here