File tree Expand file tree Collapse file tree 14 files changed +148
-62
lines changed
charts/latest/blobfuse-csi-driver Expand file tree Collapse file tree 14 files changed +148
-62
lines changed Original file line number Diff line number Diff line change @@ -68,4 +68,4 @@ cscope.*
68
68
69
69
/bazel- *
70
70
* .pyc
71
-
71
+ profile.cov
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,34 +21,56 @@ IMAGE_TAG_LATEST=$(REGISTRY_NAME)/$(IMAGE_NAME):latest
21
21
GIT_COMMIT? =$(shell git rev-parse HEAD)
22
22
BUILD_DATE? =$(shell date -u +"% Y-% m-% dT% H:% M:% SZ")
23
23
LDFLAGS? ="-X ${PKG}/pkg/blobfuse.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/blobfuse.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/blobfuse.buildDate=${BUILD_DATE} -s -w -extldflags '-static'"
24
-
25
- .PHONY : all blobfuse blobfuse-container clean
24
+ GO111MODULE = off
25
+ export GO111MODULE
26
26
27
27
all : blobfuse
28
28
29
- test :
29
+ .PHONY : verify
30
+ verify :
31
+ hack/verify-all.sh
32
+
33
+ .PHONY : unit-test
34
+ unit-test :
30
35
go test -covermode=count -coverprofile=profile.cov ./pkg/...
31
- $GOPATH /bin/goveralls -coverprofile=profile.cov -service=travis-ci
32
- integration-test :
33
- test/integration/run-tests-all-clouds.sh
36
+
37
+ .PHONY : sanity-test
34
38
sanity-test :
35
39
test/sanity/run-tests-all-clouds.sh
40
+
41
+ .PHONY : integration-test
42
+ integration-test :
43
+ test/integration/run-tests-all-clouds.sh
44
+
45
+ .PHONY : e2e-test
36
46
e2e-test :
37
47
test/e2e/run-test.sh
48
+
49
+ .PHONY : blobfuse
38
50
blobfuse :
39
51
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
40
52
CGO_ENABLED=0 GOOS=linux go build -a -ldflags ${LDFLAGS} -o _output/blobfuseplugin ./pkg/blobfuseplugin
53
+
54
+ .PHONY : blobfuse-windows
41
55
blobfuse-windows :
42
56
if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi
43
57
CGO_ENABLED=0 GOOS=windows go build -a -ldflags ${LDFLAGS} -o _output/blobfuseplugin.exe ./pkg/blobfuseplugin
58
+
59
+ .PHONY : blobfuse-container
44
60
blobfuse-container : blobfuse
45
61
docker build --no-cache -t $(IMAGE_TAG ) -f ./pkg/blobfuseplugin/Dockerfile .
62
+
63
+ .PHONY : push
46
64
push : blobfuse-container
47
65
docker push $(IMAGE_TAG )
66
+
67
+ .PHONY : push-latest
48
68
push-latest : blobfuse-container
49
69
docker push $(IMAGE_TAG )
50
70
docker tag $(IMAGE_TAG ) $(IMAGE_TAG_LATEST )
51
71
docker push $(IMAGE_TAG_LATEST )
72
+
73
+ .PHONY : clean
52
74
clean :
53
75
go clean -r -x
54
76
-rm -rf _output
Original file line number Diff line number Diff line change 33
33
- mountPath : /csi
34
34
name : socket-dir
35
35
- name : csi-attacher
36
- image : quay.io/k8scsi/csi-attacher:v1.0.1
36
+ image : " {{ .Values.image.csiAttacher.repository }}:{{ .Values.image.csiAttacher.tag }} "
37
37
args :
38
38
- --v=5
39
39
- --csi-address=$(ADDRESS)
46
46
- mountPath : /csi
47
47
name : socket-dir
48
48
- name : cluster-driver-registrar
49
- image : quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.1
49
+ image : " {{ .Values.image.clusterDriverRegistrar.repository }}:{{ .Values.image.clusterDriverRegistrar.tag }} "
50
50
args :
51
51
- --csi-address=$(ADDRESS)
52
52
- --driver-requires-attachment=true
58
58
- name : socket-dir
59
59
mountPath : /csi
60
60
- name : liveness-probe
61
- image : quay.io/k8scsi/livenessprobe:v1.1.0
61
+ image : " {{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }} "
62
62
args :
63
63
- --csi-address=/csi/csi.sock
64
64
- --connection-timeout=3s
67
67
- name : socket-dir
68
68
mountPath : /csi
69
69
- name : blobfuse
70
- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
70
+ image : " {{ .Values.image.blobfuse. repository }}:{{ .Values.image.blobfuse .tag }}"
71
71
args :
72
72
- " --v=5"
73
73
- " --endpoint=$(CSI_ENDPOINT)"
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ spec:
23
23
volumeMounts :
24
24
- mountPath : /csi
25
25
name : socket-dir
26
- image : quay.io/k8scsi/livenessprobe:v1.0.2
26
+ image : " {{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }} "
27
27
args :
28
28
- --csi-address=/csi/csi.sock
29
29
- --connection-timeout=3s
30
30
- --health-port=9802
31
31
- name : node-driver-registrar
32
- image : quay.io/k8scsi/csi-node-driver-registrar:v1.1.0
32
+ image : " {{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }} "
33
33
args :
34
34
- --csi-address=$(ADDRESS)
35
35
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
49
49
- name : registration-dir
50
50
mountPath : /registration
51
51
- name : blobfuse
52
- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
52
+ image : " {{ .Values.image.blobfuse. repository }}:{{ .Values.image.blobfuse .tag }}"
53
53
args :
54
54
- " --v=5"
55
55
- " --endpoint=$(CSI_ENDPOINT)"
Original file line number Diff line number Diff line change 1
1
image :
2
- repository : mcr.microsoft.com/k8s/csi/blobfuse-csi
3
- tag : latest
4
- pullPolicy : Always
2
+ blobfuse :
3
+ repository : mcr.microsoft.com/k8s/csi/blobfuse-csi
4
+ tag : latest
5
+ pullPolicy : Always
6
+ csiProvisioner :
7
+ repository : quay.io/k8scsi/csi-provisioner
8
+ tag : v1.0.1
9
+ pullPolicy : Always
10
+ csiAttacher :
11
+ repository : quay.io/k8scsi/csi-attacher
12
+ tag : v1.0.1
13
+ pullPolicy : Always
14
+ clusterDriverRegistrar :
15
+ repository : quay.io/k8scsi/csi-cluster-driver-registrar
16
+ tag : v1.0.1
17
+ pullPolicy : Always
18
+ livenessProbe :
19
+ repository : quay.io/k8scsi/livenessprobe
20
+ tag : v1.1.0
21
+ pullPolicy : Always
22
+ nodeDriverRegistrar :
23
+ repository : quay.io/k8scsi/csi-node-driver-registrar
24
+ tag : v1.1.0
25
+ pullPolicy : Always
5
26
6
27
serviceAccount :
7
28
create : true
Original file line number Diff line number Diff line change 22
22
volumeMounts :
23
23
- mountPath : /csi
24
24
name : socket-dir
25
- image : quay.io/k8scsi/livenessprobe:v1.0.2
25
+ image : quay.io/k8scsi/livenessprobe:v1.1.0
26
26
args :
27
27
- --csi-address=/csi/csi.sock
28
28
- --connection-timeout=3s
Original file line number Diff line number Diff line change @@ -23,4 +23,5 @@ ${PKG_ROOT}/hack/verify-govet.sh
23
23
${PKG_ROOT} /hack/verify-golint.sh
24
24
${PKG_ROOT} /hack/verify-dep.sh
25
25
${PKG_ROOT} /hack/verify-boilerplate.sh
26
- ${PKG_ROOT} /hack/verify-spelling.sh
26
+ ${PKG_ROOT} /hack/verify-spelling.sh
27
+ ${PKG_ROOT} /hack/verify-helm-chart.sh
Original file line number Diff line number Diff line change 17
17
set -euo pipefail
18
18
19
19
echo " Verifying dep check"
20
+ go get github.com/golang/dep/cmd/dep
20
21
dep check
21
- echo " No issue found"
22
+ echo " No issue found"
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ if ! which golangci-lint > /dev/null; then
21
21
go get github.com/golangci/golangci-lint/cmd/golangci-lint
22
22
fi
23
23
24
- golangci-lint run --deadline=10m
24
+ golangci-lint run --deadline=10m
25
25
26
26
echo " Congratulations! All Go source files have been linted."
27
-
You can’t perform that action at this time.
0 commit comments