Skip to content

Commit

Permalink
Advertise fault-injection capability (#4339)
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh09 authored Sep 17, 2024
1 parent 763c371 commit e7c25d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions agent/app/agent_capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,7 @@ func (agent *ecsAgent) capabilities() ([]*ecs.Attribute, error) {
capabilities = removeAttributesByNames(capabilities, externalUnsupportedCapabilities)
}

// TODO add fault-injection capabilities if applicable
// capabilities = agent.appendFaultInjectionCapabilities(capabilities)
capabilities = agent.appendFaultInjectionCapabilities(capabilities)

return capabilities, nil
}
Expand Down Expand Up @@ -543,9 +542,6 @@ func (agent *ecsAgent) appendEBSTaskAttachCapabilities(capabilities []*ecs.Attri
return capabilities
}

// TODO Remove linter directive below when the function becomes used
//
//lint:ignore U1000 as this method will be used in the future.
func (agent *ecsAgent) appendFaultInjectionCapabilities(capabilities []*ecs.Attribute) []*ecs.Attribute {
if isFaultInjectionToolingAvailable() {
capabilities = appendNameOnlyAttribute(capabilities, attributePrefix+capabilityFaultInjection)
Expand Down

0 comments on commit e7c25d3

Please sign in to comment.