Skip to content

Conversation

@mharding-hpe
Copy link
Contributor

Summary and Scope

While testing my changes for a different PR, I stumbled across a few Bash syntax errors in the etcd_cluster_balance function in ncnHealthChecks.sh. And while fixing those, I noticed that the function was making the same Kubernetes calls twice in a row -- once to show the user, and the second time to pipe through wc to count the lines. I modified that so that it could accomplish both things with only one call to Kubernetes -- which speeds it up appreciably.

Issues and Related PRs

The syntax errors were injected by this PR for CASMPET-6827.

Testing

I tested the updated code on mug.

Risks and Mitigations

Low risk. Right now the syntax error prevents the function from working.

Pull Request Checklist

  • Version number(s) incremented, if applicable
  • Copyrights updated
  • License file intact
  • Target branch correct
  • Testing is appropriate and complete, if applicable

@mharding-hpe mharding-hpe merged commit def853c into master Mar 15, 2024
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.

4 participants