-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework flasher as a generic agent to handle all bare metal actions
This is done to have a single service that interfaces with the hardware to carry out condition related actions. Instead of having one service for each kind of hardware interaction, now this service does it all and can be scaled up/down as a NATS worker. Going ahead we converge the functionalities of Alloy, Flipflop into this agent. The ctrl library is also included.
- Loading branch information
Showing
89 changed files
with
6,544 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,4 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COSIGN_EXPERIMENTAL: 1 | ||
GOVERSION: "1.20" | ||
GOVERSION: "1.22" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
*.test | ||
|
||
# Application binary itself | ||
/flasher | ||
/flasher-osx | ||
/agent | ||
/agent-osx | ||
|
||
.DS_Store | ||
*~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
testonly: False | ||
with-expecter: True | ||
packages: | ||
github.com/metal-automata/flasher/internal/runner: | ||
github.com/metal-automata/agent/internal/firmware/runner: | ||
config: | ||
dir: internal/runner | ||
dir: internal/firmware/runner | ||
fileName: "mock_{{.InterfaceName | firstLower}}.go" | ||
inpackage: true | ||
interfaces: | ||
TaskHandler: | ||
ActionHandler: | ||
github.com/metal-automata/flasher/internal/device: | ||
github.com/metal-automata/agent/internal/device: | ||
config: | ||
dir: internal/device | ||
fileName: "mock_{{.InterfaceName | firstLower}}.go" | ||
inpackage: true | ||
interfaces: | ||
OutofbandQueryor: | ||
InbandQueryor: | ||
github.com/metal-automata/agent/internal/ctrl: | ||
config: | ||
fileName: "mock_{{.InterfaceName | firstLower}}.go" | ||
dir: internal/ctrl | ||
inpackage: True | ||
interfaces: | ||
TaskHandler: | ||
Publisher: | ||
StatusPublisher: | ||
ConditionStatusQueryor: | ||
ConditionStatusPublisher: | ||
eventStatusAcknowleger: | ||
LivenessCheckin: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM alpine:latest | ||
|
||
ENTRYPOINT ["/usr/sbin/flasher"] | ||
ENTRYPOINT ["/usr/sbin/agent"] | ||
|
||
COPY flasher /usr/sbin/flasher | ||
RUN chmod +x /usr/sbin/flasher | ||
COPY agent /usr/sbin/agent | ||
RUN chmod +x /usr/sbin/agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.