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 ability to dump all resource data to text file #981

Merged
merged 43 commits into from
May 16, 2023

Conversation

jasonhawkharris
Copy link
Contributor

Test plan

Tested manually for kubernetes and docker deployments of sourcegraph

jasonhawkharris and others added 30 commits April 28, 2023 16:12
- Prints all current resource allocations for each service (CPU, Memory, Storage) to the terminal
- Previously, you could only run `scout` on a k8s deployment
- Now, by specifying the `--docker` flag, you can run against a docker
  deployment
- Added unit tests for ResourcesK8s and ResourcesDocker
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
- change package from resources to resource
- renamed files accordingly
- changed from if statement to switch statement.
- deleted empty README.md
@jasonhawkharris jasonhawkharris merged commit 165b945 into main May 16, 2023
@jasonhawkharris jasonhawkharris deleted the jhh/src-resource branch May 16, 2023 19:34
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

Successfully merging this pull request may close these issues.

2 participants