Skip to content

Commit

Permalink
feat: implement powering machines on/off
Browse files Browse the repository at this point in the history
Power on/off machines based on the preferred power state and their pending operations.

Signed-off-by: Utku Ozdemir <[email protected]>
  • Loading branch information
utkuozdemir committed Dec 13, 2024
1 parent b423085 commit d2f788d
Show file tree
Hide file tree
Showing 19 changed files with 551 additions and 88 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-12-06T14:06:35Z by kres 1ebe796.
# Generated on 2024-12-11T22:07:40Z by kres 8183c20.

# common variables

Expand Down Expand Up @@ -159,7 +159,7 @@ local-%: ## Builds the specified target defined in the Dockerfile using the loc
echo $$platform; \
directory="$${platform//\//_}"; \
if [[ -d "$$DEST/$$directory" ]]; then \
mv "$$DEST/$$directory/"* $$DEST; \
mv -f "$$DEST/$$directory/"* $$DEST; \
rmdir "$$DEST/$$directory/"; \
fi; \
done'
Expand Down
121 changes: 87 additions & 34 deletions api/specs/specs.pb.go

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

4 changes: 4 additions & 0 deletions api/specs/specs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ message MachineStatusSpec {
// It is used to track the last reboot time of the machine, and to enforce the MinRebootInterval.
google.protobuf.Timestamp last_reboot_timestamp = 5;
}

message PowerStatusSpec {
PowerState power_state = 1;
}
Loading

0 comments on commit d2f788d

Please sign in to comment.