File tree 4 files changed +27
-9
lines changed
4 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 19
19
[[ GH-143 ]] ( https://github.com/digitalocean/csi-digitalocean/pull/143 )
20
20
* Add tagging support for Volume snapshots via the new ` --do-tag ` flag
21
21
[[ GH-145 ]] ( https://github.com/digitalocean/csi-digitalocean/pull/145 )
22
+ * Fix race in snapshot integration test.
23
+ [[ GH-146 ]] ( https://github.com/digitalocean/csi-digitalocean/pull/146 )
22
24
23
25
## v1.0.0 - 2018.12.19
24
26
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
10
10
LDFLAGS ?= -X github.com/digitalocean/csi-digitalocean/driver.version=${VERSION} -X github.com/digitalocean/csi-digitalocean/driver.commit=${COMMIT} -X github.com/digitalocean/csi-digitalocean/driver.gitTreeState=${GIT_TREE_STATE}
11
11
PKG ?= github.com/digitalocean/csi-digitalocean/cmd/do-csi-plugin
12
12
13
- # # Bump the version in the version file. Set BUMP to [ major | minor | patch ]
14
- BUMP := patch
15
13
VERSION ?= $(shell cat VERSION)
16
14
17
15
all : test
@@ -20,8 +18,8 @@ publish: compile build push clean
20
18
21
19
.PHONY : bump-version
22
20
bump-version :
23
- @go get -u github.com/jessfraz/junk/sembump # update sembump tool
24
- $( eval NEW_VERSION = $( shell sembump --kind $( BUMP ) $( VERSION ) ) )
21
+ @[ " ${NEW_VERSION} " ] || ( echo " NEW_VERSION must be set (ex. make NEW_VERSION=v1.x.x bump-version) " ; exit 1 )
22
+ @ (echo ${ NEW_VERSION} | grep -E " ^v " ) || ( echo " NEW_VERSION must be a semver ('v' prefix is required) " ; exit 1 )
25
23
@echo " Bumping VERSION from $( VERSION) to $( NEW_VERSION) "
26
24
@echo $(NEW_VERSION ) > VERSION
27
25
@cp deploy/kubernetes/releases/csi-digitalocean-${VERSION} .yaml deploy/kubernetes/releases/csi-digitalocean-${NEW_VERSION} .yaml
Original file line number Diff line number Diff line change @@ -36,19 +36,19 @@ bumped following the rules below:
36
36
</thead >
37
37
<tbody >
38
38
<tr>
39
- <td>v0.1.0 - v0.2.x</td>
39
+ <td>v0.1.x - v0.2.x</td>
40
40
<td>yes</td>
41
41
<td>no</td>
42
42
<td>no</td>
43
43
</tr>
44
44
<tr>
45
- <td>v0.3.0 - v0.4.x</td>
45
+ <td>v0.3.x - v0.4.x</td>
46
46
<td>no</td>
47
47
<td>yes</td>
48
48
<td>no</td>
49
49
</tr>
50
50
<tr>
51
- <td>v1.0.0 - v1.0.x</td>
51
+ <td>v1.0.x - v1.0.x</td>
52
52
<td>no</td>
53
53
<td>no</td>
54
54
<td>yes</td>
@@ -226,7 +226,7 @@ Dependencies are managed via [Go modules](https://github.com/golang/go/wiki/Modu
226
226
To release a new version bump first the version:
227
227
228
228
```
229
- $ make bump-version
229
+ $ make NEW_VERSION=v1.0.0 bump-version
230
230
```
231
231
232
232
Make sure everything looks good. Create a new branch with all changes:
Original file line number Diff line number Diff line change @@ -358,6 +358,24 @@ func TestSnapshot_Create(t *testing.T) {
358
358
Name : "my-csi-app-2" ,
359
359
},
360
360
Spec : v1.PodSpec {
361
+ // Write the data in an InitContainer so that we can guarantee
362
+ // it's been written before we reach running in the main container.
363
+ InitContainers : []v1.Container {
364
+ {
365
+ Name : "my-csi" ,
366
+ Image : "busybox" ,
367
+ VolumeMounts : []v1.VolumeMount {
368
+ {
369
+ MountPath : "/data" ,
370
+ Name : volumeName ,
371
+ },
372
+ },
373
+ Command : []string {
374
+ "sh" , "-c" ,
375
+ "echo testcanary > /data/canary && sync" ,
376
+ },
377
+ },
378
+ },
361
379
Containers : []v1.Container {
362
380
{
363
381
Name : "my-csi-app" ,
@@ -370,7 +388,7 @@ func TestSnapshot_Create(t *testing.T) {
370
388
},
371
389
Command : []string {
372
390
"sh" , "-c" ,
373
- "echo testcanary > /data/canary && sleep 1000000" ,
391
+ "sleep 1000000" ,
374
392
},
375
393
},
376
394
},
You can’t perform that action at this time.
0 commit comments