Skip to content
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

Merged
merged 53 commits into from
Dec 9, 2021
Merged

Conversation

alonnoga
Copy link
Contributor

@alonnoga alonnoga commented Dec 7, 2021

Issue & Steps to Reproduce / Feature Request

Adding ttl to environment resource

  1. read ttl
  2. update ttl
  3. when removing ttl it should be updated to infinite

@alonnoga alonnoga changed the base branch from main to feat-trigger-deployments-for-environment December 7, 2021 15:41
@alonnoga
Copy link
Contributor Author

alonnoga commented Dec 8, 2021

@alonnoga alonnoga requested a review from a team December 8, 2021 13:26
Base automatically changed from feat-trigger-deployments-for-environment to main December 8, 2021 16:26
Copy link
Contributor

@HeverFarber HeverFarber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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))
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4d01ba2 👍🏻

@HeverFarber HeverFarber added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Dec 9, 2021
@alonnoga alonnoga merged commit 0458d4e into main Dec 9, 2021
@alonnoga alonnoga deleted the feat-add-ttl-to-environment branch December 9, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants