-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feat add TTL to environment resource #174
Conversation
…nt' into feat-trigger-deployments-for-environment
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!
env0/resource_environment.go
Outdated
ttl := val.(string) | ||
matched, err := regexp.MatchString(utcPattern, ttl) | ||
if !matched || err != nil { | ||
errs = append(errs, fmt.Errorf("%q must be of iso format, got: %q", key, ttl)) |
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.
Maybe add example to ISO date to the error
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.
4d01ba2 👍🏻
Issue & Steps to Reproduce / Feature Request
Adding ttl to environment resource