Skip to content

Commit

Permalink
feat: allow specifying extra kernel args on infra machines
Browse files Browse the repository at this point in the history
Allow user-overrides for the extra kernel args. They'll be used when the infra machine is PXE booted.
Additionally, add the check tm verify that the machine was reset before marking it as deallocated in the `InfraMachineController`.

In the static infra provider tests:
- Disable kexec wherever possible, so that we test it with real reboots to ensure the provider making correct boot decisions.
- Add tests for scaling cluster up/down.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Dec 5, 2024
1 parent 95c22be commit 815b2b0
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 79 deletions.
83 changes: 47 additions & 36 deletions client/api/omni/specs/infra.pb.go

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

2 changes: 2 additions & 0 deletions client/api/omni/specs/infra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ message InfraMachineSpec {
//
// It is used by the provider to ensure that the machine is wiped between allocations.
string wipe_id = 5;

string extra_kernel_args = 6;
}

message InfraMachineStateSpec {
Expand Down
47 changes: 47 additions & 0 deletions client/api/omni/specs/infra_vtproto.pb.go

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

78 changes: 44 additions & 34 deletions client/api/omni/specs/omni.pb.go

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

Loading

0 comments on commit 815b2b0

Please sign in to comment.