-
Notifications
You must be signed in to change notification settings - Fork 282
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
Add maintenance day validation for database and kubernetes clusters #1293
Add maintenance day validation for database and kubernetes clusters #1293
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.
Thanks for another helpful contribution!
I left a comment in line re: DOKS maintenance policies also supporting any
.
c831635
to
c5dd54e
Compare
c5dd54e
to
7fe8510
Compare
Type: schema.TypeString, | ||
Optional: true, | ||
Computed: true, | ||
ValidateFunc: validation.StringInSlice([]string{"any", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"}, true), |
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 don't have much experience with Go. I see that Go has no line length limit. So go fmt
didn't complain or change this.
Should I wrap this to have every value on a separate line for readability?
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.
It's not something that is required in Go, but it is still often nice for readability. I've pushed a commit doing so since we've already made you wait too long on this.
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 again for the contribution! Sorry it took so long to land with the holidays. 🙏
The docs did not really tell me how to use this field.