Commit df63ede
fix: strip colon from parsed NewReplicaSet name (#543)
* fix: strip colon from parsed NewReplicaSet name
Include the trailing colon in the 'newreplicaset:' keyword so substring() removes "NewReplicaSet:" entirely. Previously the colon was left behind, causing getNewReplicaSet to return ":" instead of the actual ReplicaSet name.
Also update the getNewReplicaSet unit test to use realistic colon-delimited `kubectl describe` output, which the previous mock omitted.
Resolves #318
* fix: update new replica set name format in tests
---------
Co-authored-by: David Gamero <david340804@gmail.com>1 parent c56f17f commit df63ede
2 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
639 | | - | |
| 638 | + | |
640 | 639 | | |
641 | 640 | | |
642 | | - | |
| 641 | + | |
643 | 642 | | |
644 | 643 | | |
645 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments