Skip to content

Commit

Permalink
fix ACLResourcePatternType: add ANY
Browse files Browse the repository at this point in the history
Looks like ANY was added while KIP-290 was being implemented, and MATCH
was moved to not be any, but to instead be some form of matching.

I likely had an old version of Kafka checked out while adding this
because I was trying to determine Kafka versions.
  • Loading branch information
twmb committed Jun 10, 2021
1 parent 8cf3e5a commit 96cb1c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
8 changes: 5 additions & 3 deletions generate/definitions/enums
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ ACLResourceType int8 (
// This field was added with Kafka 2.0.0 for KIP-290.
ACLResourcePatternType int8 (
// Matches anything.
1: MATCH
1: ANY
// Performs pattern matching; i.e., a literal match, or a prefix match, or wildcard.
2: MATCH
// The name must be an exact match.
2: LITERAL
3: LITERAL
// The name must have our requested name as a prefix (that is, "foo" will match on "foobar").
3: PREFIXED
4: PREFIXED
)

// An ACL permission type.
Expand Down
22 changes: 14 additions & 8 deletions pkg/kmsg/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96cb1c2

Please sign in to comment.