Commit 177a186
authored
fix: use grep -w for exact IP matching in cluster node configuration (#757)
When configuring cluster nodes, the grep command used to find node names
by private IP would match IP prefixes as substrings (e.g., 10.0.1.8
matching 10.0.1.81), concatenating multiple node names with a newline.
This caused kubectl to fail with "nodes not found" for the combined
string.
Add -w flag to grep for word-boundary matching, ensuring each IP matches
only its exact occurrence in kubectl output.
Fixes #756
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>1 parent 2f61797 commit 177a186
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
| 517 | + | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
0 commit comments