Skip to content

Commit

Permalink
Register FIS Handlers & add fault injection capability to unsupported…
Browse files Browse the repository at this point in the history
… list of capabilities on EXTERNAL
  • Loading branch information
Harish Senthilkumar committed Oct 8, 2024
1 parent 6e612c6 commit 8d34796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions agent/app/agent_capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ var (
attributePrefix + taskEIAWithOptimizedCPU,
attributePrefix + capabilityServiceConnect,
attributePrefix + capabilityEBSTaskAttach,
attributePrefix + capabilityFaultInjection,
}
// List of capabilities that are only supported on external capaciity. Currently only one but keep as a list
// for future proof and also align with externalUnsupportedCapabilities.
Expand Down
3 changes: 1 addition & 2 deletions agent/handlers/task_server_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ func taskServerSetup(
agentAPIV1HandlersSetup(muxRouter, state, credentialsManager, cluster, tmdsAgentState,
taskProtectionClientFactory, metricsFactory)

// TODO: Future PR to pass in TMDS server router once all of the handlers have been implemented.
execWrapper := execwrapper.NewExec()
registerFaultHandlers(nil, tmdsAgentState, metricsFactory, execWrapper)
registerFaultHandlers(muxRouter, tmdsAgentState, metricsFactory, execWrapper)

return tmds.NewServer(auditLogger,
tmds.WithHandler(muxRouter),
Expand Down

0 comments on commit 8d34796

Please sign in to comment.