Skip to content

Commit

Permalink
fix(flameql): allow dots in tag name (#3479)
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev authored Aug 13, 2024
1 parent 0bf22a4 commit b16b27a
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 @@ -97,7 +97,7 @@ func ValidateAppName(n string) error {
}

func IsTagKeyRuneAllowed(r rune) bool {
return (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= '0' && r <= '9') || r == '_'
return (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || (r >= '0' && r <= '9') || r == '_' || r == '.'
}

func IsAppNameRuneAllowed(r rune) 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 @@ -43,6 +43,7 @@ var _ = Describe("ValidateTagKey", func() {

testCases := []testCase{
{"foo_BAR_12_baz_qux", nil},
{"service.namespace", nil},

{ReservedTagKeyName, ErrTagKeyReserved},
{"", ErrTagKeyIsRequired},
Expand Down

0 comments on commit b16b27a

Please sign in to comment.