-
Notifications
You must be signed in to change notification settings - Fork 23
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
RFC: add containerName selector #13
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: “fewdan” <[email protected]>
Signed-off-by: “fewdan” <[email protected]>
Signed-off-by: “fewdan” <[email protected]>
What's the expected behavior of this selector? Could you provide some examples? 😁 |
For example, if we specify containerName as "AAA", then all selected pods should have corresponding containers "AAA". |
I think we need a more higher level design than simply add a field to the I have thought about the design of selectors and the development of chaos. Here is a draft: Auto implement
|
Can I understand it like this, that is, after we select a target, we can achieve a universal apply func (pod or container can be accepted)? |
For those chaos who can be applied on containers, we should always pass it containers. And for those who cannot be applied on containers separately, passing containers to them should result in an error. |
Summary
Add a new type of selector, namely "containerName selector".
Motivation
At present, some chaos involve containers (such as container-kill). If only the current selector is used, it is possible that the required container does not exist in the target pod.
Detailed design
We can add a type to the selector so that we can select pods with a specified container name.
Drawbacks
It may not be necessary enough.
Alternatives
Using existing options can solve the problem, but it is more troublesome for users. They need to know which containers exist in which pods.
Unresolved questions
None.