-
Notifications
You must be signed in to change notification settings - Fork 5.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 docs for CRI validation test suites #725
Conversation
/cc @Random-Liu @mrunalp @kubernetes/sig-node-pr-reviews |
contributors/devel/cri-validation.md
Outdated
@@ -0,0 +1,50 @@ | |||
# CRI Validation Testing | |||
|
|||
CRI validation testing provides a serial of common validation test suites for Kubelet CRI (_Container Runtime Interface_). |
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.
s/serial/series
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.
@mrunalp Thanks. Fixed.
contributors/devel/cri-validation.md
Outdated
@@ -0,0 +1,50 @@ | |||
# CRI Validation Testing |
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.
Spell out the full name at the title:
Container Runtime Interface (CRI)
contributors/devel/cri-validation.md
Outdated
@@ -0,0 +1,50 @@ | |||
# CRI Validation Testing | |||
|
|||
CRI validation testing provides a series of common validation test suites for Kubelet CRI (_Container Runtime Interface_). |
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.
"provides a test framework and a suite of tests to validate that the Container Runtime Interface (CRI) server implementation meets all the requirements. This allows the CRI runtime developers to verify that their runtime conforms to CRI, without needing to set up Kubernetes components or run Kubernetes end-to-end tests."
contributors/devel/cri-validation.md
Outdated
|
||
CRI validation testing provides a series of common validation test suites for Kubelet CRI (_Container Runtime Interface_). | ||
|
||
It helps container runtime maintainers to validate their runtime when integrating with kubelet CRI. |
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.
Remove
contributors/devel/cri-validation.md
Outdated
|
||
It helps container runtime maintainers to validate their runtime when integrating with kubelet CRI. | ||
|
||
*Note: No kubelet is running. The test suites run directly targeting the shim of container runtime.* |
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.
Remove. I think this will be covered by the paragraph in my comment.
contributors/devel/cri-validation.md
Outdated
|
||
*Note: No kubelet is running. The test suites run directly targeting the shim of container runtime.* | ||
|
||
*Note: CRI validation testing is alpha and maintained at [cri-tools](https://github.com/kubernetes-incubator/cri-tools) repo.* |
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.
Remove *Note
Suggestion:
"CRI validation testing is currently Alpha and is hosted at the cri-tools repository. We encourage the CRI developers to report bugs or help extend the test coverage by adding more tests."
Please modify it according to your knowledge on the current test coverage and the limitation of the test suite.
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 mention that performance benchmarking will be added in the future?
contributors/devel/cri-validation.md
Outdated
|
||
## Install | ||
|
||
The test suites could be installed easily via `go get` command: |
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.
s/could/can
contributors/devel/cri-validation.md
Outdated
|
||
## Running tests | ||
|
||
Before running the tests, ensure the shim of CRI container runtime is running and kubelet is stopped. |
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.
Suggestion:
"
Prerequisite
Before running the test, you need to ensure that the CRI server under test is running and listening on a Unix
socket. Because the validation tests are designed to request changes (e.g., create/delete) to the containers and verify that correct status is reported, it expects to be the only user of the CRI server. Please make sure that 1) there are no existing CRI-managed containers running on the node, and 2) no other processes (e.g., Kubelet) will interfere with the tests.
"
@yujuhong Thanks. Addressed comments, PTAL. |
@feiskyer the content LGTM, but I just noticed that this is in the community repository. Shouldn't we move the doc to cri-tools instead? |
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.
Some minor nits. Docs LGTM otherwise.
contributors/devel/cri-validation.md
Outdated
|
||
CRI validation testing provides a test framework and a suite of tests to validate that the Container Runtime Interface (CRI) server implementation meets all the requirements. This allows the CRI runtime developers to verify that their runtime conforms to CRI, without needing to set up Kubernetes components or run Kubernetes end-to-end tests. | ||
|
||
CRI validation testing is currently Alpha and is hosted at the [cri-tools](https://github.com/kubernetes-incubator/cri-tools) repository. And performance benchmarking will be added in the future. We encourage the CRI developers to report bugs or help extend the test coverage by adding more tests. |
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.
Remove "And": "...repository. Performance benchmarking..."
contributors/devel/cri-validation.md
Outdated
go get github.com/kubernetes-incubator/cri-tools/cmd/critest | ||
``` | ||
|
||
Then `critest` binary could be found in `$GOPATH/bin`. |
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.
"could" -> "can"
contributors/devel/cri-validation.md
Outdated
|
||
### Prerequisite | ||
|
||
Before running the test, you need to ensure that the CRI server under test is running and listening on a Unix socket. Because the validation tests are designed to request changes (e.g., create/delete) to the containers and verify that correct status is reported, it expects to be the only user of the CRI server. Please make sure that 1) there are no existing CRI-managed containers running on the node, and 2) no other processes (e.g., Kubelet) will interfere with the tests. |
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.
Are you referring to a specific test when you say, "...ensure that the CRI server under test is running and listening..."? If so, you might want to italicize it.
contributors/devel/cri-validation.md
Outdated
- Run the tests using `ginkgo` | ||
- Output the test results to STDOUT | ||
|
||
critest connects to `/var/run/dockershim.sock` by default. For other runtimes, the endpoint could be set in two ways: |
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.
"could" -> "can"
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
A doc in community repository could help for a wide scope. We will also add more detailed docs in cri-tools repository. |
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
Reference features: kubernetes/enhancements#292.