-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 validation to the revisions provided in the revision list. #3045
Add validation to the revisions provided in the revision list. #3045
Conversation
Since the revisions are supposed to be k8s objects, their names are supposed to follow the same naming convention. Thus validate the revision names to make sure the servive at least has a chance of serving something.
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.
@vagababov: 0 warnings.
In response to this:
Since the revisions are supposed to be k8s objects, their names
are supposed to follow the same naming convention.
Thus validate the revision names to make sure the servive at least
has a chance of serving something./lint
/close #3034Fixes #3034
Also part of #2819.Proposed Changes
- Validate the revision names in the WebHook
- Add related tests.
/cc @mattmoor
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/retest |
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mattmoor, vagababov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-knative-serving-integration-tests |
/retest |
😠 |
…ve#3045) * add validation for the revision entries * Add validation to the revisions provided in the revision list. Since the revisions are supposed to be k8s objects, their names are supposed to follow the same naming convention. Thus validate the revision names to make sure the servive at least has a chance of serving something.
Since the revisions are supposed to be k8s objects, their names
are supposed to follow the same naming convention.
Thus validate the revision names to make sure the servive at least
has a chance of serving something.
/lint
/close #3034
Fixes #3034
Also part of #2819.
Proposed Changes
/cc @mattmoor