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

added interval duration validation #18

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

ibrokethecloud
Copy link
Collaborator

Based on feedback from QA, we need additional validation on the Polling Interval field for events.

harvester/harvester#2318 (comment)

Currently this is a string.

PR introduces an additional validation on the type definition for events using CEL.

This ensures api validates the input to ensure that the string matches a valid duration:

image

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

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

LGTM

@guangbochen guangbochen merged commit 3f487d8 into harvester:main Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants