Skip to content

Commit

Permalink
fix(flameql): allow slashes in application name (#3722)
Browse files Browse the repository at this point in the history
* fix(flameql): allow slashes in application name
  • Loading branch information
marcsanmi authored Nov 27, 2024
1 parent fa69fe0 commit 123a3f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/og/flameql/flameql.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func IsTagKeyRuneAllowed(r rune) bool {
}

func IsAppNameRuneAllowed(r rune) bool {
return r == '-' || r == '.' || IsTagKeyRuneAllowed(r)
return r == '-' || r == '.' || r == '/' || IsTagKeyRuneAllowed(r)
}

func IsTagKeyReserved(k string) bool {
Expand Down
1 change: 1 addition & 0 deletions pkg/og/flameql/flameql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ var _ = Describe("ValidateAppName", func() {

testCases := []testCase{
{"foo.BAR-1.2_baz_qux", nil},
{"namespace/service", nil},

{"", ErrAppNameIsRequired},
{"#", ErrInvalidAppName},
Expand Down

0 comments on commit 123a3f4

Please sign in to comment.