Skip to content

Add validation to the revisions provided in the revision list.#3045

Merged
knative-prow-robot merged 3 commits intoknative:masterfrom
vagababov:2819-add-rev-validation
Jan 31, 2019
Merged

Add validation to the revisions provided in the revision list.#3045
knative-prow-robot merged 3 commits intoknative:masterfrom
vagababov:2819-add-rev-validation

Conversation

@vagababov
Copy link
Copy Markdown
Contributor

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

  • Validate the revision names in the WebHook
  • Add related tests.

/cc @mattmoor

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.
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 31, 2019
Copy link
Copy Markdown
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@vagababov: 0 warnings.

Details

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 #3034

Fixes #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.

@vagababov
Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2019
@vagababov
Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

@vagababov
Copy link
Copy Markdown
Contributor Author

/retest

@vagababov
Copy link
Copy Markdown
Contributor Author

😠
/test pull-knative-serving-integration-tests

@knative-prow-robot knative-prow-robot merged commit 6fe8817 into knative:master Jan 31, 2019
ZhiminXiang pushed a commit to ZhiminXiang/serving-1 that referenced this pull request Feb 7, 2019
…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.
@vagababov vagababov deleted the 2819-add-rev-validation branch February 13, 2019 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebHook does no validation of the revision values

3 participants