File tree Expand file tree Collapse file tree 6 files changed +12
-7
lines changed Expand file tree Collapse file tree 6 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 34
34
- ' GOOS=${_GOOS}'
35
35
- ' GOARCH=${_GOARCH}'
36
36
- ' VERSION=${TAG_NAME}'
37
- - name : " ubuntu "
37
+ - name : " golang:1.10-stretch "
38
38
args : ["bash", "build/test.sh"]
39
39
env :
40
40
- ' GOOS=${_GOOS}'
Original file line number Diff line number Diff line change 42
42
- ' GOOS=${_GOOS}'
43
43
- ' GOARCH=${_GOARCH}'
44
44
- ' VERSION=${TAG_NAME}'
45
- - name : " ubuntu "
45
+ - name : " golang:1.10-stretch "
46
46
args : ["bash", "build/test.sh"]
47
47
env :
48
48
- ' GOOS=${_GOOS}'
Original file line number Diff line number Diff line change 2
2
3
3
cp -r /workspace/_output/kubebuilder /tmp/kubebuilder/
4
4
5
- export GOPATH=/tmp/go
5
+ # Tests won't work on darwin
6
+ if [ $GOOS = " linux" ]; then
7
+
8
+ export GOPATH=/go
6
9
mkdir -p $GOPATH /src/github.com/kubernetes-sigs/kubebuilder-test/
7
10
cd $GOPATH /src/github.com/kubernetes-sigs/kubebuilder-test/
8
11
@@ -18,8 +21,9 @@ kubebuilder create resource --group insect --version v1beta1 --kind Bee
18
21
kubebuilder create resource --group insect --version v1beta1 --kind Wasp
19
22
20
23
# Verify the controller-manager builds and the tests pass
21
- go install github.com/kubernetes-sigs/kubebuilder-test/cmd/controller-manager
22
24
go build ./cmd/...
23
25
go build ./pkg/...
24
26
go test ./cmd/...
25
27
go test ./pkg/...
28
+
29
+ fi
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ func (apis *APIs) GetRules() []rbacv1.PolicyRule {
73
73
}
74
74
75
75
type APIGroup struct {
76
- // Package is the name of the go package the api group is under - e.g. github.com/pwittrock /apiserver-helloworld/apis
76
+ // Package is the name of the go package the api group is under - e.g. github.com/me /apiserver-helloworld/apis
77
77
Package string
78
78
// Domain is the domain portion of the group - e.g. k8s.io
79
79
Domain string
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ New API workflow:
16
16
## Download the latest release
17
17
18
18
Make sure you downloaded and installed the latest release:
19
- [ here] ( https://github.com/pwittrock /kubebuilder/blob/master/docs/installing.md )
19
+ [ here] ( https://github.com/kubernetes-sigs /kubebuilder/blob/master/docs/installing.md )
20
20
21
- - Download the latest [ release] ( https://github.com/pwittrock /kubebuilder/releases/ )
21
+ - Download the latest [ release] ( https://github.com/kubernetes-sigs /kubebuilder/releases/ )
22
22
- Extract the tar and move the kubebuilder/ directory to ` /usr/local ` (or somewhere else on your path)
23
23
- Add ` /usr/local/kubebuilder/bin ` to your path - ` export PATH=$PATH:/usr/local/kubebuilder/bin `
24
24
- Set environment variables for starting test control planes
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ go install github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder-gen
8
8
go install github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder
9
9
10
10
export VENDOR_KB=/tmp/vendorbin/vendor/github.com/kubernetes-sigs/kubebuilder
11
+
11
12
# Build vendor tar
12
13
mkdir -p $VENDOR_KB /pkg/ || echo " "
13
14
cp -r vendor/* /tmp/vendorbin/vendor/
You can’t perform that action at this time.
0 commit comments