Skip to content

Commit

Permalink
feat: compute machineclass machine requirement (pressure)
Browse files Browse the repository at this point in the history
Introduce the resource `MachinesetRequiredMachines` containing the information about how many more machines are requested from a machine set using a machine class.

Introduce the resource `MachineClassStatus`, containing the information of the total amount of required additional machines (i.e., machine pressure) on a machine set.

The pressure is only created if a machine set is using a machine class with static allocation type (not unlimited).

Related to siderolabs#270.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Jul 21, 2024
1 parent 23fb0c1 commit 67bcc75
Show file tree
Hide file tree
Showing 19 changed files with 1,536 additions and 576 deletions.
1,118 changes: 627 additions & 491 deletions client/api/omni/specs/omni.pb.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions client/api/omni/specs/omni.proto
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,12 @@ message MachineSetStatusSpec {
uint32 locked_updates = 7;
}

// MachineSetRequiredMachinesSpec describes the required machines for the machine set.
message MachineSetRequiredMachinesSpec {
// RequiredMachines is the number of machines required to satisfy the machine set.
uint32 required_additional_machines = 1;
}

// MachineSetNodeSpec is a binding between ClusterMachine and MachineSet.
message MachineSetNodeSpec {}

Expand Down Expand Up @@ -914,6 +920,12 @@ message MachineClassSpec {
repeated string match_labels = 1;
}

// MachineClassStatusSpec describes an Omni MachineClassStatus resource spec.
message MachineClassStatusSpec {
// RequiredAdditionalMachines is the number of additional machines required to satisfy the machine class.
uint32 required_additional_machines = 1;
}

// MachineConfigGenOptionsSpec describes machine related config generation inputs.
message MachineConfigGenOptionsSpec {
message InstallImage {
Expand Down
Loading

0 comments on commit 67bcc75

Please sign in to comment.