From e07b77101db6a36c755e88a25116a2c4f55d502e Mon Sep 17 00:00:00 2001 From: tomjo Date: Thu, 19 Oct 2023 21:28:06 +0200 Subject: [PATCH] fix: allow AutoTopicCreation with default type non-partitioned by allowing Partitions to be unset --- pulsaradmin/pkg/utils/topic_auto_creation_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsaradmin/pkg/utils/topic_auto_creation_config.go b/pulsaradmin/pkg/utils/topic_auto_creation_config.go index 6664655974..8444514250 100644 --- a/pulsaradmin/pkg/utils/topic_auto_creation_config.go +++ b/pulsaradmin/pkg/utils/topic_auto_creation_config.go @@ -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"` }