Skip to content
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

Add function for retrieving replicas (pods) of a deployment #63

Closed
pablochacin opened this issue Jul 18, 2022 · 1 comment
Closed

Add function for retrieving replicas (pods) of a deployment #63

pablochacin opened this issue Jul 18, 2022 · 1 comment

Comments

@pablochacin
Copy link
Contributor

A very basic requirement when executing chaos tests on deployments is to act on one of replicas (for example, kill it).
Even when it is possible to obtain the list of replicas by listing all pods in a namespace and filtering those that matches the label selector of the deployment, this in inconvenient.

Therefore, it would be convenient to have a function that, given a deployment, returns the existing list of pods. This function could optionally accept some flag(s) for common field selectors, such as state (e.g. to filter-out non running replicas)

@pablochacin
Copy link
Contributor Author

This issue was initially proposed for supporting the injection of faults in the pods backing a Deployment However, this functionality should be rather implemented in the xk6-disruptor extension, as part of a DeploymentDisruptor class, similar to the ServiceDisrupor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant