-
Notifications
You must be signed in to change notification settings - Fork 31
Support Log Drains #168
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
Support Log Drains #168
Conversation
d42bf43
to
9e025a0
Compare
9e025a0
to
cb36af1
Compare
cb36af1
to
8a8be59
Compare
func (v validatorMapMaxCount) Description(ctx context.Context) string { | ||
return fmt.Sprintf("Map must contain fewer than %d items", v.Max) | ||
} | ||
func (v validatorMapMaxCount) MarkdownDescription(ctx context.Context) string { | ||
return fmt.Sprintf("Map must contain fewer than %d items", v.Max) | ||
} |
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.
We are doing req.ConfigValue.Elements()) > v.Max
below, shouldn't it be "can't contain more than %d items"?
func (v validatorFloat64LessThan) Description(ctx context.Context) string { | ||
return fmt.Sprintf("Value must be less than %.2f", v.Max) | ||
} | ||
func (v validatorFloat64LessThan) MarkdownDescription(ctx context.Context) string { | ||
return fmt.Sprintf("Value must be less than `%.2f`", v.Max) | ||
} |
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.
func (v validatorFloat64GreaterThan) Description(ctx context.Context) string { | ||
return fmt.Sprintf("Value must be greater than %.2f", v.Min) | ||
} | ||
func (v validatorFloat64GreaterThan) MarkdownDescription(ctx context.Context) string { | ||
return fmt.Sprintf("Value must be greater than `%.2f`", v.Min) | ||
} |
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.
Same as here https://github.com/vercel/terraform-provider-vercel/pull/168/files#r1572629974, just with equal or greater than
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.
Fix validators in case my comments are correct. Otherwise looks good to me.
Initial support for Customisable Log Drains (not Integration Log Drains).
Closes #128.