Skip to content

Commit

Permalink
fix: invalid name in kuttl migrate command (#480)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Nov 24, 2023
1 parent dec8822 commit 2ec8aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .release-notes/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Release notes for `TODO`.
## :wrench: Fixes :wrench:

- Fixed a kuttl migration failure in case of unsupported file name
- Fixed a potential invalid name when migrating a kuttl test step
2 changes: 1 addition & 1 deletion pkg/commands/kuttl/migrate/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func migrate(out io.Writer, path string, resource unstructured.Unstructured) (me
return nil, err
}
if step.GetName() == "" {
step.SetName(groups[2])
step.SetName(strings.ReplaceAll(groups[2], "_", "-"))
}
return step, nil
case "TestAssert":
Expand Down

0 comments on commit 2ec8aa0

Please sign in to comment.