Skip to content

Commit

Permalink
ci: update kind version and set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Feb 5, 2021
1 parent a0196d8 commit 21d9940
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
needs: build
name: 1-master-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -123,6 +124,7 @@ jobs:
needs: build
name: 3-master-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -170,6 +172,7 @@ jobs:
needs: build
name: ipv6-e2e
runs-on: ubuntu-18.04
timeout-minutes: 30
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ uninstall:
bash dist/images/cleanup.sh

e2e:
docker pull nginx:alpine
kind load docker-image --name kube-ovn nginx:alpine
ginkgo -p --slowSpecThreshold=60 test/e2e
docker pull kubeovn/pause:3.2
kind load docker-image --name kube-ovn kubeovn/pause:3.2
ginkgo -progress -reportPassed --slowSpecThreshold=60 test/e2e

ut:
ginkgo -p --slowSpecThreshold=60 test/unittest
ginkgo -progress -reportPassed --slowSpecThreshold=60 test/unittest

scan:
trivy image --light --exit-code=1 --severity=HIGH --ignore-unfixed kubeovn/kube-ovn:${RELEASE_TAG}
2 changes: 1 addition & 1 deletion docs/kubectl-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To enable kubectl plugin, kubectl version of 1.12 or later is recommended. You c

1. Get the `kubectl-ko` file
```bash
wget https://raw.githubusercontent.com/alauda/kube-ovn/v1.1.0/dist/images/kubectl-ko
wget https://raw.githubusercontent.com/alauda/kube-ovn/release-1.6/dist/images/kubectl-ko
```

2. Move the file to one of $PATH directories
Expand Down
9 changes: 6 additions & 3 deletions test/e2e/ip/static_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import (
"k8s.io/apimachinery/pkg/labels"
)

const (
TestImage = "kubeovn/pause:3.2"
)
var _ = Describe("[IP Allocation]", func() {
namespace := "static-ip"
f := framework.NewFramework("ip allocation", fmt.Sprintf("%s/.kube/config", os.Getenv("HOME")))
Expand All @@ -37,7 +40,7 @@ var _ = Describe("[IP Allocation]", func() {
Containers: []corev1.Container{
{
Name: name,
Image: "nginx:alpine",
Image: TestImage,
ImagePullPolicy: corev1.PullIfNotPresent,
},
},
Expand Down Expand Up @@ -87,7 +90,7 @@ var _ = Describe("[IP Allocation]", func() {
Containers: []corev1.Container{
{
Name: name,
Image: "nginx:alpine",
Image: TestImage,
ImagePullPolicy: corev1.PullIfNotPresent,
},
},
Expand Down Expand Up @@ -159,7 +162,7 @@ var _ = Describe("[IP Allocation]", func() {
Containers: []corev1.Container{
{
Name: name,
Image: "nginx:alpine",
Image: TestImage,
ImagePullPolicy: corev1.PullIfNotPresent,
},
},
Expand Down

0 comments on commit 21d9940

Please sign in to comment.