-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unify fault injection commands #356
Conversation
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
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 love how simpler this looks and how you figured out how to compose the Service and Pod disruptors.
Looking great, left a few comments mostly about nits and naming, should not be blockers.
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
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.
Left a comment on a potential typo, but otherwise LGTM! Feel free to merge right away after resolving the comment.
pkg/api/convert.go
Outdated
@@ -17,6 +20,7 @@ import ( | |||
// string <-- string | |||
// time.Duration <-- string | |||
// time.Time <-- string (only in RFC3339 format) | |||
// IntOrStr <-- string or int64 |
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.
// IntOrStr <-- string or int64 | |
// IntOrStr <-- string or int32 |
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.
This is not a typo. In JS the only int type supported in int64
the API layer will convert to int32
and throws an error if the value overflows. I added a comment to clarify this.
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.
Does goja support int64
s? I though all JS numbers were spec'd as 64b IEEE floats, but I'm not sure how goja does it here.
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
cf74ff3
to
b129cd0
Compare
Description
Change the way port mapping is managed in service fault injection to allow reusing the pod injection logic.
Fixes #261 (no longer required)
Checklist:
make lint
) and all checks pass.make test
) and all tests pass.make integration-xxx
for affected packages)make e2e-xxx
fordisruptors
, orcluster
related changes)