-
Notifications
You must be signed in to change notification settings - Fork 0
Add cluster info gatherer for the upcoming Ambient mesh migration-estimation page #1
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
87fd6e8
add cluster info gatherer
inFocus7 3fe7be0
add progress bar to script
inFocus7 f53156a
use actual metrics if found, add more node information, add checksum …
inFocus7 b030315
add action to verify checksums
inFocus7 d0b190e
update checksum + fix verification makefile
inFocus7 7661c4d
fix action
inFocus7 99e3b3e
go through all namespaces to get cpu usage, denote istio-injected nam…
inFocus7 847d632
only support 1 cluster to simplify ux+ui
inFocus7 c2a6787
add todo - remove json file
inFocus7 a525955
update sha256
inFocus7 800dbe6
parallelize namespace processing + add continue flag
inFocus7 85ff9c4
update checksum
inFocus7 e2291fe
Delete cluster_info.json
inFocus7 2702533
remove TODOs and update checksum
inFocus7 307f3bf
make script executable
inFocus7 cf633e1
Apply suggestions from code review
inFocus7 0ff7c78
update checksum
inFocus7 0ed3116
resolve 99% of shellcheck errors and warns - except SC3045
inFocus7 b4c41f5
review comments + move checksum generators + verifiers to script
inFocus7 7c01058
minor safety check when removing temp_dir
inFocus7 541b91b
use more portable 'manual' parallel processing at a cost of speed
inFocus7 f524fc2
fix topology and node information gathering labels
inFocus7 8d7cebc
add support for more units + decimals
inFocus7 f4e0a04
update checksum
inFocus7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Verify Checksums | ||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
verify-checksums: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make verify-checksums |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: checksums | ||
checksums: | ||
@find . -type f \( -name "*.sh" -o -name "*.bash" \) | while read file; do \ | ||
echo "Creating checksum for $$file"; \ | ||
sha256sum "$$file" | awk '{print $$1}' > "$$file.sha256"; \ | ||
done | ||
|
||
.PHONY: verify-checksums | ||
verify-checksums: | ||
@errors=0; \ | ||
for file in $$(find . -type f \( -name "*.sh" -o -name "*.bash" \)); do \ | ||
inFocus7 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cs_file="$$file.sha256"; \ | ||
if [ ! -f "$$cs_file" ]; then \ | ||
echo "[ERR] $$file - checksum file missing"; \ | ||
errors=$$((errors+1)); \ | ||
else \ | ||
computed=$$(sha256sum "$$file" | awk '{print $$1}'); \ | ||
expected=$$(awk '{print $$1}' "$$cs_file"); \ | ||
if [ "$$computed" = "$$expected" ]; then \ | ||
echo "[OK] $$file"; \ | ||
else \ | ||
echo "[ERR] $$file - checksum mismatch"; \ | ||
errors=$$((errors+1)); \ | ||
fi; \ | ||
fi; \ | ||
done; \ | ||
if [ $$errors -ne 0 ]; then \ | ||
echo "Checksum verification failed with $$errors errors"; \ | ||
exit 1; \ | ||
fi; \ | ||
echo "All checksums verified successfully" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.