-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding EnableFaultInjection to task payload #4364
Conversation
9ad1aa2
to
ba7e457
Compare
ba7e457
to
74c3067
Compare
@@ -38,7 +38,7 @@ type TaskResponse struct { | |||
EphemeralStorageMetrics *EphemeralStorageMetrics `json:"EphemeralStorageMetrics,omitempty"` | |||
CredentialsID string `json:"-"` | |||
TaskNetworkConfig *TaskNetworkConfig `json:"-"` | |||
FaultInjectionEnabled bool `json:"-"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the current name is intentional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a change for this field in the feature branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should add a comment either in the PR description or in the code denoting that EnabledFaultInjection
within the Task struct of agent/api/task
essentially relates/maps to FaultInjectionEnabled
within the task response struct of ecs-agent/tmds/handlers/v4/state/
98dba89
to
553903c
Compare
19fad6a
to
1d123a7
Compare
1d123a7
to
dab3142
Compare
dab3142
to
069246e
Compare
Co-authored-by: Harish Senthilkumar <[email protected]>
Summary
This pull request adds
EnableFaultInjection
to the task payload.Implementation details
EnableFaultInjection
into the task struct.EnableFaultInjection
field to true in the task struct when the corresponding AcsTask is not nil.Testing
Ran the existing set of tests to verify the change to
EnableFaultInjection
Description for the changelog
Adding EnableFaultInjection to task payload
Additional Information
Does this PR include breaking model changes? If so, Have you added transformation functions?
Does this PR include the addition of new environment variables in the README?
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.