-
Notifications
You must be signed in to change notification settings - Fork 24
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
Trigger recipient fixes #311
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.
Nice work! 🚀
@@ -92,6 +92,7 @@ const ( | |||
PDSeverityERROR PagerDutySeverity = "error" | |||
PDSeverityWARNING PagerDutySeverity = "warning" | |||
PDSeverityINFO PagerDutySeverity = "info" | |||
PDDefaultSeverity = PDSeverityCRITICAL |
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.
Nice add for extra clarity
} | ||
|
||
func (m notificationRecipientsModifier) PlanModifySet(ctx context.Context, req planmodifier.SetRequest, resp *planmodifier.SetResponse) { | ||
// Do nothing on resource destroy. |
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.
thanks for the comments here to explain the logic going on!
Default: stringdefault.StaticString("critical"), | ||
Optional: true, | ||
Computed: true, | ||
Description: "The severity to set with the PagerDuty notification. If no severity is provided, 'critical' is assumed.", |
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.
Nice add!
It looks like these missing returns are an oversight from honeycombio#311?
This completes the move of the
honeycombio_trigger
resource to the Terraform Plugin Framework (started in #306).In order to support versions of Terraform core older than 1.4.0 (which, is rather "fresh") there is a bit of logic to handle
Null
orUnknown
values of these awkwardly-shaped notification recipients.This also 'bumps' the version of Terraform core used in CI to 1.0.11 (from the old 0.14.x series).