Skip to content

Commit e0bf0b2

Browse files
authored
Merge pull request #22011 from tengqm/fix-examples-test
Fix example tests for English site
2 parents 4c19ec6 + 69a162d commit e0bf0b2

File tree

5 files changed

+976
-78
lines changed

5 files changed

+976
-78
lines changed

content/en/examples/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
Note: These tests are importing code from kubernetes that isn't really
2-
meant to be used outside the repo. This causes vendoring problems. As
3-
a result, we have to work around those with these lines in the travis
4-
config:
1+
To run the tests for a localization, use the following command:
52

63
```
7-
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery
8-
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apiserver
9-
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/client-go
10-
- cp -r $GOPATH/src/k8s.io/kubernetes/vendor/* $GOPATH/src/
11-
- rm -rf $GOPATH/src/k8s.io/kubernetes/vendor/*
12-
- cp -r $GOPATH/src/k8s.io/kubernetes/staging/src/* $GOPATH/src/
4+
go test k8s.io/website/content/<lang>/examples
135
```
6+
7+
where `<lang>` is the two character representation of a language. For example:
8+
9+
```
10+
go test k8s.io/website/content/en/examples
11+
```
12+

content/en/examples/application/php-apache.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ spec:
2222
cpu: 500m
2323
requests:
2424
cpu: 200m
25-
2625
---
27-
2826
apiVersion: v1
2927
kind: Service
3028
metadata:
@@ -36,4 +34,3 @@ spec:
3634
- port: 80
3735
selector:
3836
run: php-apache
39-

0 commit comments

Comments
 (0)