-
Notifications
You must be signed in to change notification settings - Fork 53
stateful rules: fix docs and ci #611
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
Conversation
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.
Just a couple of comments but overall LGTM!
return diag.FromErr(err) | ||
} | ||
|
||
d.SetId(fmt.Sprintf("count_%s", ruleName)) |
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 the id be count__ruleName__ruleType
(with double underscores)?
ruleIndexObj, ok := d.GetOk("index") | ||
ruleIndex := 0 | ||
if ok { | ||
ruleIndex = ruleIndexObj.(int) |
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.
Nit: Could we use the ruleIndex, ok
form here to avoid panic since we are not enforcing a schema on this field?
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.
LGTM! Thanks for addressing my nits :)
add data source and resource for missing stateful detection elements, update cache GHA version