Skip to content

Commit

Permalink
[Issue 1105][pulsaradmin] fix AutoTopicCreation for type non-partitio…
Browse files Browse the repository at this point in the history
…ned (#1107)

Fixes #1105

### Motivation

To allow setting the AutoTopicCreation policy to non-partitioned it is required to not send the partitions parameter, by making Partitions a pointer instead of an int this is possible.

### Modifications

Change the type of Partitions in TopicAutoCreationConfig from int to *int
  • Loading branch information
Tom Jorissen authored Jan 9, 2024
1 parent 3a1a766 commit cae74c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsaradmin/pkg/utils/topic_auto_creation_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ package utils
type TopicAutoCreationConfig struct {
Allow bool `json:"allowAutoTopicCreation"`
Type TopicType `json:"topicType"`
Partitions int `json:"defaultNumPartitions"`
Partitions *int `json:"defaultNumPartitions"`
}

0 comments on commit cae74c5

Please sign in to comment.