-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DENA-671: Compacted topics validations #27
Conversation
rules/msk_topic_config.md
Outdated
When cleanup policy is 'compact': | ||
- 'retention.ms' must not be specified in the config | ||
- tiered storage must not be enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with all these settings, so I'm curious: what's the reason for these restrictions?
EDIT: I see you linked some docs for another change utilitywarehouse/kafka-cluster-config#662 (comment) maybe worth linking those here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, added in this commit: 9a1f2c7
@@ -42,6 +46,16 @@ resource "kafka_topic" "good topic" { | |||
"retention.ms" = "86400000" | |||
} | |||
} | |||
|
|||
# Good compacted topic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should there be a bad example here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it wouldn't hurt. Added in 9a1f2c7
Updating to utilitywarehouse/tflint-ruleset-kafka-config#27 that includes compacted topics validation
Add validations for compacted topics