forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up examples gate job for 1.11 (kubernetes#9345)
There were things changed upstream which have blocked the examples test from running correctly: - PodSecurityPolicy has been MOVED from extensions API group into policy. All samples that are using this resource type needs a change. - The 'GetCodecForObject()' function in testapi/testapi package was removed in 1.11 for unknown reasons. This change has broken our job as well as the test code in the kubernetes/examples project. - Kubernetes is now using 1.10.2+ verion of Go for compilation so we have to change the .travis.yml accordingly. This PR fixes the above problems. Note also, the `TestReadme` function is **removed** for two reasons: - It is only testing the snippets in the `volumes.md` file which is now broken because of the introduction of service account token injection. - It is regarded as too aggressive/restrictive a test. We cannot guarantee that YAML snippets in the markdown files are complete and can be used as is. Instead I believe we should encourage people to use template snippets that contain the **key** information for a topic. When we see a need for a full template that can be used directly, we may want to extract the YAML contents into the `examples` subdirectory.
- Loading branch information
1 parent
d15da5a
commit 59e626e
Showing
2 changed files
with
37 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters