forked from jlandersen/vscode-kafka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only show replication factor input when relevant
When creating a new topic from the wizard - read offsets.topic.replication.factor from broker config to determine max replication factor - fallback to default.replication.factor - fallback to the lowest value between 3 and the number of brokers (looking at you cloudkarafka) If value <= 1, the replication factor input is not shown in the topic wizard Fixes jlandersen#64 Signed-off-by: Fred Bricon <[email protected]>
- Loading branch information
Showing
5 changed files
with
90 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* @see https://kafka.apache.org/documentation/#brokerconfigs | ||
*/ | ||
export namespace BrokerConfigs { | ||
|
||
/** | ||
* @see https://kafka.apache.org/documentation/#brokerconfigs_default.replication.factor | ||
*/ | ||
export const DEFAULT_REPLICATION_FACTOR = 'default.replication.factor'; | ||
|
||
/** | ||
* @see https://kafka.apache.org/documentation/#brokerconfigs_offsets.topic.replication.factor | ||
*/ | ||
export const OFFSETS_TOPIC_REPLICATION_FACTOR = 'offsets.topic.replication.factor'; | ||
|
||
/** | ||
* @see https://kafka.apache.org/documentation/#brokerconfigs_auto.create.topics.enable | ||
*/ | ||
export const AUTO_CREATE_TOPIC_ENABLE = 'auto.create.topics.enable'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters