Commit Graph

27 Commits (4920a516651e89e2b51513b14bb18746f0e1ddc6)

Author SHA1 Message Date
Qiming 6c80860a75 Improve examples test (#9467)
This PR moves the examples test to where it belongs and also include the
following improvements:

- Removed test cases defined for non-existent files;
- Add guard against ineffective tests against missing files;
- Remove the special case for scheduler-policy-config which is no longer
  an example, the dependency on the related go module is thus
  eliminated;
- Updated the .tavis.yml file to use the new test case: the instruction
  sequence is adjusted to ensure the correct version of kubernetes is
  fully prepared before we do `go get -v -t`.
- The examples_test.go is formatted using `gofmt`;
- Verbose output during test has been added.
- A separate test case is added for CN translation.

Related: #9285
2018-07-11 08:43:25 -07:00
Qiming 59e626e056 Set up examples gate job for 1.11 (#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.
2018-07-02 12:53:18 -07:00
Qiming abcb57e1fd Restore gate jobs (#8388)
* Restore gate jobs

Most gate jobs have been disabled recently so we are risking introduce
many defects when migrating to Hugo. This PR fixes the gate job to get
it running again.

* add comment for fix

* comment out, delete later

* comment out completely

* include package
2018-05-18 11:14:51 -07:00
Bjørn Erik Pedersen 7f3b633aa0 Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
2018-05-05 09:00:51 -07:00
Qiming b855bd1d52 Run tests against the current stable k8s version (#8122)
So far we have been running tests against the master branch of
kubernetes/kubernetes. This is creating quite some problems because the
master branch is always moving. We are actually checking the YAML files
against a version between 1.10 and 1.11.

This PR is attempting to fix the problem by checking out the
'release-1.10' branch before running the tests. We are supposed to
change the branch to be used when release-1.11 is out. With this PR
(hopefully it works), we will only need to fix the gate every time a new
release is out.
2018-04-26 14:05:27 -07:00
Steve Perry dfe3e277e6
Change repo name to website. (#6076) 2017-10-27 10:47:03 -07:00
Zhang Xingcai 6948f44ea1 Update .travis.yml (#6070) 2017-10-27 10:25:54 -07:00
Tim Hockin 4501e6449b Remove mungedocs and md-check (#5191) 2017-08-24 12:50:48 -07:00
Tim Hockin 618c212c32 Move mungedocs tool to the docs repo. (#5178)
* Remove seemingly errant file

* Move mungedocs tool to docs repo

* Bump go version to 1.8.3
2017-08-24 09:36:36 -07:00
Anirudh Ramanathan 2f82ff8a96 Update golang version to 1.8.1 2017-06-01 13:51:12 -07:00
foxish 7669c9edac Long term fix for travis 2017-05-17 12:52:04 -07:00
Andrew Chen 78cfc25c79 Fix Travis CI 2017-05-03 08:39:26 -07:00
Anirudh Ramanathan 3dc509026d Update and fix travis tests (short-term) 2017-05-02 11:42:51 -07:00
Jeff Mendoza fc9b83e95d Fix apimachinery vendored dependencies in examples_test. 2017-02-24 14:44:38 -08:00
foxish f348728060 Fix travis and add comments 2017-02-15 16:46:45 -08:00
foxish 2553649598 Fix travis.yml 2017-02-15 13:55:35 -08:00
Jeff Mendoza baf1b7ef0d Fix Travis test builds' vendoring workaround. 2017-02-10 13:15:15 -08:00
Jess Frazelle 2e60a567dd
turn on travis for preformat balance
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-01-27 12:44:48 -08:00
Janet Kuo 4a33f4f44c Fix travis failure by bumping go version to 1.7.3 2017-01-17 16:03:13 -08:00
Jeff Mendoza c44e1ba64f Fix travis 2017-01-13 13:50:56 -08:00
Janet Kuo d879046fc4 Add script for checking titles 2017-01-10 15:08:10 -08:00
Janet Kuo 2f16fce28b Add script for verifying docs without entry 2016-12-27 16:03:37 -08:00
foxish a34a79b456 Adding travis checks for linter (md-check). 2016-08-29 16:40:31 -07:00
Jeff Mendoza 1e867e3813 Add tests for config files and Travis config. 2016-08-11 09:14:19 -07:00
johndmulhausen 6c9ce7bd35 Delete .travis.yml 2016-07-07 02:06:24 -07:00
johndmulhausen 9dabfa4b62 Update .travis.yml 2016-04-30 14:20:36 -07:00
johndmulhausen 120359b896 Create .travis.yml 2016-04-30 14:17:29 -07:00