-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix skip-acls on apply and add tests (#57)
- Loading branch information
Showing
14 changed files
with
248 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
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
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,24 @@ | ||
Executing apply... | ||
|
||
Applying: [CREATE] | ||
|
||
+ [TOPIC] MY_TOPIC | ||
+ partitions: 6 | ||
+ replication: 1 | ||
|
||
|
||
Successfully applied. | ||
|
||
Applying: [CREATE] | ||
|
||
+ [TOPIC] another.topic.0 | ||
+ partitions: 1 | ||
+ replication: 1 | ||
+ configs: | ||
+ cleanup.policy: compact | ||
+ segment.bytes: 100000 | ||
|
||
|
||
Successfully applied. | ||
|
||
[SUCCESS] Apply complete! Resources: 2 created, 0 updated, 0 deleted. |
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,94 @@ | ||
{ | ||
"topicPlans": [ | ||
{ | ||
"name": "MY_TOPIC", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 6, | ||
"replication": 1, | ||
"configs": {} | ||
}, | ||
"topicConfigPlans": [] | ||
}, | ||
{ | ||
"name": "another.topic.0", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 1, | ||
"replication": 1, | ||
"configs": { | ||
"cleanup.policy": "compact", | ||
"segment.bytes": "100000" | ||
} | ||
}, | ||
"topicConfigPlans": [] | ||
} | ||
], | ||
"aclPlans": [ | ||
{ | ||
"name": "test-service-0", | ||
"aclDetails": { | ||
"name": "another.topic.0", | ||
"type": "TOPIC", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "WRITE", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
}, | ||
{ | ||
"name": "test-service-1", | ||
"aclDetails": { | ||
"name": "MY_TOPIC", | ||
"type": "TOPIC", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
}, | ||
{ | ||
"name": "test-service-2", | ||
"aclDetails": { | ||
"name": "test-service", | ||
"type": "GROUP", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
}, | ||
{ | ||
"name": "my-other-service-0", | ||
"aclDetails": { | ||
"name": "another.topic.0", | ||
"type": "TOPIC", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
}, | ||
{ | ||
"name": "my-other-service-1", | ||
"aclDetails": { | ||
"name": "my-other-service", | ||
"type": "GROUP", | ||
"pattern": "LITERAL", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
} | ||
] | ||
} |
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,28 @@ | ||
{ | ||
"topicPlans": [ | ||
{ | ||
"name": "MY_TOPIC", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 6, | ||
"replication": 1, | ||
"configs": {} | ||
}, | ||
"topicConfigPlans": [] | ||
}, | ||
{ | ||
"name": "another.topic.0", | ||
"action": "ADD", | ||
"topicDetails": { | ||
"partitions": 1, | ||
"replication": 1, | ||
"configs": { | ||
"cleanup.policy": "compact", | ||
"segment.bytes": "100000" | ||
} | ||
}, | ||
"topicConfigPlans": [] | ||
} | ||
], | ||
"aclPlans": [] | ||
} |
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,26 @@ | ||
topics: | ||
MY_TOPIC: | ||
partitions: 6 | ||
replication: 1 | ||
|
||
another.topic.0: | ||
partitions: 1 | ||
replication: 1 | ||
configs: | ||
cleanup.policy: compact | ||
segment.bytes: 100000 | ||
|
||
services: | ||
test-service: | ||
type: application | ||
principal: User:test | ||
produces: | ||
- another.topic.0 | ||
consumes: | ||
- MY_TOPIC | ||
|
||
my-other-service: | ||
type: application | ||
principal: User:test | ||
consumes: | ||
- another.topic.0 |