File tree Expand file tree Collapse file tree 7 files changed +25
-4
lines changed Expand file tree Collapse file tree 7 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -133,3 +133,9 @@ clean:
133
133
.PHONY : create-metrics-svc
134
134
create-metrics-svc :
135
135
kubectl create -f deploy/example/metrics/csi-blob-controller-svc.yaml
136
+
137
+ .PHONY : create-example-deployment
138
+ create-example-deployment :
139
+ kubectl apply -f deploy/example/storageclass-blobfuse.yaml
140
+ kubectl apply -f deploy/example/deployment.yaml
141
+ kubectl apply -f deploy/example/statefulset.yaml
Original file line number Diff line number Diff line change 32
32
" kubernetes.io/os " : linux
33
33
containers :
34
34
- name : deployment-blob
35
- image : nginx
35
+ image : mcr.microsoft.com/oss/ nginx/nginx:1.17.3-alpine
36
36
command :
37
37
- " /bin/sh"
38
38
- " -c"
Original file line number Diff line number Diff line change 7
7
nodeSelector :
8
8
" kubernetes.io/os " : linux
9
9
containers :
10
- - image : nginx
10
+ - image : mcr.microsoft.com/oss/ nginx/nginx:1.17.3-alpine
11
11
name : nginx-blob
12
12
command :
13
13
- " /bin/sh"
Original file line number Diff line number Diff line change 17
17
" kubernetes.io/os " : linux
18
18
containers :
19
19
- name : statefulset-blob
20
- image : nginx
20
+ image : mcr.microsoft.com/oss/ nginx/nginx:1.17.3-alpine
21
21
command :
22
22
- " /bin/sh"
23
23
- " -c"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ set -euo pipefail
18
18
19
19
if [[ -z " $( command -v golangci-lint) " ]]; then
20
20
echo " Cannot find golangci-lint. Installing golangci-lint..."
21
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin v1.24 .0
21
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $( go env GOPATH) /bin v1.31 .0
22
22
fi
23
23
24
24
golangci-lint run --no-config --enable=golint --disable=typecheck --deadline=10m
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import (
27
27
"path/filepath"
28
28
"strings"
29
29
"testing"
30
+ "time"
30
31
31
32
"github.com/onsi/ginkgo"
32
33
"github.com/onsi/ginkgo/reporters"
@@ -111,6 +112,16 @@ var _ = ginkgo.BeforeSuite(func() {
111
112
112
113
var _ = ginkgo .AfterSuite (func () {
113
114
if testutil .IsRunningInProw () {
115
+ createExampleDeployment := testCmd {
116
+ command : "make" ,
117
+ args : []string {"create-example-deployment" },
118
+ startLog : "create example deployments" ,
119
+ endLog : "example deployments created" ,
120
+ }
121
+ execTestCmd ([]testCmd {createExampleDeployment })
122
+ // sleep 120s waiting for deployment running complete
123
+ time .Sleep (120 * time .Second )
124
+
114
125
blobLog := testCmd {
115
126
command : "bash" ,
116
127
args : []string {"test/utils/blob_log.sh" },
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ echo "print out all nodes status ..."
23
23
kubectl get nodes -o wide
24
24
echo " ======================================================================================"
25
25
26
+ echo " print out all default namespace pods status ..."
27
+ kubectl get pods -n default -o wide
28
+ echo " ======================================================================================"
29
+
26
30
echo " print out all $NS namespace pods status ..."
27
31
kubectl get pods -n${NS}
28
32
echo " ======================================================================================"
You can’t perform that action at this time.
0 commit comments