This repository has been archived by the owner on May 5, 2024. It is now read-only.
forked from devshawn/kafka-gitops
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for whitelisting topic prefixes (#74)
Closes devshawn#90
- Loading branch information
Showing
11 changed files
with
141 additions
and
14 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
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
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
35 changes: 35 additions & 0 deletions
35
src/test/resources/plans/seed-blacklist-whitelist-topics-plan.json
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,35 @@ | ||
{ | ||
"topicPlans": [ | ||
{ | ||
"name": "new-topic", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 6, | ||
"replication": 1, | ||
"configs": {} | ||
}, | ||
"topicConfigPlans": [] | ||
}, | ||
{ | ||
"name": "topic-with-configs-1", | ||
"action": "REMOVE", | ||
"topicDetails": null, | ||
"topicConfigPlans": [] | ||
} | ||
], | ||
"aclPlans": [ | ||
{ | ||
"name": "Unnamed ACL", | ||
"aclDetails": { | ||
"name": "test-topic", | ||
"type": "TOPIC", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "REMOVE" | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/plans/seed-blacklist-whitelist-topics.yaml
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,14 @@ | ||
settings: | ||
topics: | ||
blacklist: | ||
prefixed: | ||
- test | ||
- topic-with-configs-2 | ||
whitelist: | ||
prefixed: | ||
- topic-with | ||
|
||
topics: | ||
new-topic: | ||
partitions: 6 | ||
replication: 1 |
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,35 @@ | ||
{ | ||
"topicPlans": [ | ||
{ | ||
"name": "test-new-topic", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 6, | ||
"replication": 1, | ||
"configs": {} | ||
}, | ||
"topicConfigPlans": [] | ||
}, | ||
{ | ||
"name": "test-topic", | ||
"action": "REMOVE", | ||
"topicDetails": null, | ||
"topicConfigPlans": [] | ||
} | ||
], | ||
"aclPlans": [ | ||
{ | ||
"name": "Unnamed ACL", | ||
"aclDetails": { | ||
"name": "test-topic", | ||
"type": "TOPIC", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "REMOVE" | ||
} | ||
] | ||
} |
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,10 @@ | ||
settings: | ||
topics: | ||
whitelist: | ||
prefixed: | ||
- test | ||
|
||
topics: | ||
test-new-topic: | ||
partitions: 6 | ||
replication: 1 |