Skip to content

Commit

Permalink
feat: allow user-configured BMC credentials
Browse files Browse the repository at this point in the history
Allow users to provide IPMI credentials manually, so the init via agent wouldn't be required.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Feb 6, 2025
1 parent a522f9c commit 8d3b3cf
Show file tree
Hide file tree
Showing 11 changed files with 519 additions and 202 deletions.
147 changes: 79 additions & 68 deletions api/specs/specs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/specs/specs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ message BMCConfigurationSpec {

IPMI ipmi = 1;
API api = 2;
bool manually_configured = 3;
}

message MachineStatusSpec {
Expand Down
37 changes: 37 additions & 0 deletions api/specs/specs_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ go 1.23.5
replace (
github.com/pensando/goipmi => github.com/siderolabs/goipmi v0.0.0-20211214143420-35f956689e67
github.com/pin/tftp/v3 => github.com/utkuozdemir/pin-tftp/v3 v3.0.0-20241021135417-0dd7dba351ad

// todo: to be removed after https://github.com/siderolabs/omni/pull/910 is merged
github.com/siderolabs/omni/client => github.com/utkuozdemir/sidero-omni/client v0.0.0-20250206131809-5eca68427ae8
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,6 @@ github.com/siderolabs/image-factory v0.6.7 h1:OpDd/cFyzRxa4EUPQLCteK9twx015LOUyQ
github.com/siderolabs/image-factory v0.6.7/go.mod h1:3vN7mO4HBJ+PBSsEJV1ht9p9USkeUQskUYnfQizXWno=
github.com/siderolabs/net v0.4.0 h1:1bOgVay/ijPkJz4qct98nHsiB/ysLQU0KLoBC4qLm7I=
github.com/siderolabs/net v0.4.0/go.mod h1:/ibG+Hm9HU27agp5r9Q3eZicEfjquzNzQNux5uEk0kM=
github.com/siderolabs/omni/client v0.46.1 h1:ZeY+qwxX6agAuzC97qmnbmUmPrhuASmki0bBjThdJK8=
github.com/siderolabs/omni/client v0.46.1/go.mod h1:x8xZQ3injj68cbN/NdvFTEDMywP0mAh6vrUzoqdcTXY=
github.com/siderolabs/proto-codec v0.1.2 h1:KYrRiCk5wdA2ilZZoW4bWtICCF4y3r28FhmunPa50HE=
github.com/siderolabs/proto-codec v0.1.2/go.mod h1:TCsjpw732TWuOx4Vd4gYhivPOttEhdPvczLfMQ6Y9Dc=
github.com/siderolabs/protoenc v0.2.2 h1:vVQDrTjV+QSOiroWTca6h2Sn5XWYk7VSUPav5J0Qp54=
Expand Down Expand Up @@ -370,6 +368,8 @@ github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc=
github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/utkuozdemir/pin-tftp/v3 v3.0.0-20241021135417-0dd7dba351ad h1:l/GaA5Ut8YynZNW0jBhcE6W4aodMPOyURqpza76lhCw=
github.com/utkuozdemir/pin-tftp/v3 v3.0.0-20241021135417-0dd7dba351ad/go.mod h1:Kvfewx0+8GO2KpUCPRZAzVjzVN+TnRgn7tuaPlkf3fw=
github.com/utkuozdemir/sidero-omni/client v0.0.0-20250206131809-5eca68427ae8 h1:z7EBL1XAAGXOGr73YHIh8nwUZXMtf/78QSrejt91mtw=
github.com/utkuozdemir/sidero-omni/client v0.0.0-20250206131809-5eca68427ae8/go.mod h1:vbVvs+cuTQtt0tYPor5jwrAVPjXdxrYFVWpKUlU2pPU=
github.com/vbatts/tar-split v0.12.1 h1:CqKoORW7BUWBe7UL/iqTVvkTBOF8UvOMKOIZykxnnbo=
github.com/vbatts/tar-split v0.12.1/go.mod h1:eF6B6i6ftWQcDqEn3/iGFRFRo8cBIMSJVOpnNdfTMFA=
github.com/vishvananda/netlink v1.3.0 h1:X7l42GfcV4S6E4vHTsw48qbrV+9PVojNfIhZcwQdrZk=
Expand Down
Loading

0 comments on commit 8d3b3cf

Please sign in to comment.