Skip to content

Commit

Permalink
Merge pull request #4 from opencurve/spy-dev-snapshot
Browse files Browse the repository at this point in the history
Spy dev snapshot
  • Loading branch information
spyyang authored Dec 14, 2021
2 parents e822425 + ed5f29b commit 1fd7e98
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v2.0.0

- support snapshot
- support clone/restore

## v2.0.0-alpha

- update csi spec to v1.5.0
Expand Down
2 changes: 1 addition & 1 deletion charts/curve-csi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v2.0.0-alpha"
appVersion: "v2.0.0"
4 changes: 2 additions & 2 deletions charts/curve-csi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nodeplugin:
hostDir: /var/log/curve-csi-node

plugin:
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0-alpha
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0
# add resources limit
resources: {}

Expand Down Expand Up @@ -39,7 +39,7 @@ controllerplugin:
hostDir: /var/log/curve-csi-controller

plugin:
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0-alpha
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0
# add resources limit
resources: {}

Expand Down
2 changes: 1 addition & 1 deletion deploy/manifests/node-plugin-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0-alpha
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0
args:
- --endpoint=$(CSI_ENDPOINT)
- --drivername=curve.csi.netease.com
Expand Down
2 changes: 1 addition & 1 deletion deploy/manifests/provisioner-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
privileged: true
capabilities:
add: ["SYS_ADMIN"]
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0-alpha
image: harbor.cloud.netease.com/qzprod-k8s/k8scsi/curve-csi:v2.0.0
args:
- --endpoint=$(CSI_ENDPOINT)
- --drivername=curve.csi.netease.com
Expand Down
9 changes: 9 additions & 0 deletions docs/curve-interface/curve-cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Curve CLI

- [Create a directory](#create-a-directory)
- [Delete a directory](#delete-a-directory)
- [Create a volume](#create-a-volume)
- [Extend a volume](#extend-a-volume)
- [Get the volume information](#get-the-volume-information)
- [List the volumes in a directory](#list-the-volumes-in-a-directory)
- [Delete a volume](#delete-a-volume)
- [Code Comparison](#code-comparison)

### Create a directory

`curve mkdir [-h] --user USER --dirname DIRNAME`
Expand Down
5 changes: 5 additions & 0 deletions docs/curve-interface/curve-nbd.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Map/unmap the curve device.

- [Usage](#usage)
- [Map](#map)
- [List mapped](#list-mapped)
- [Unmap](#unmap)

### Usage

```
Expand Down
22 changes: 17 additions & 5 deletions docs/curve-interface/snapshot-clone-service.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Curve Snapshot/Clone Interface

- [Create a snapshot](#create-a-snapshot)
- [Delete a snapshot](#delete-a-snapshot)
- [Cancel a snapshot](#cancel-a-snapshot)
- [Query the snapshot information](#query-the-snapshot-information)
- [Clone](#clone)
- [Volume recover from a snapshot](#volume-recover-from-a-snapshot)
- [Flatten](#flatten)
- [Query the information of the specific clone or recover task](#query-the-information-of-the-specific-clone-or-recover-task)
- [Clean a clone or recover task](#clean-a-clone-or-recover-task)
- [Code Comparison](#code-comparison)


## Create a snapshot

| Method | Url |
Expand Down Expand Up @@ -209,7 +221,7 @@ Content-Length: xxx
}
```

## Clone
## Clone

| Method | Url |
| --- | --- |
Expand Down Expand Up @@ -303,7 +315,7 @@ Content-Length: xxx
}
```

## Flatten: recover lazy-cloned volume
## Flatten

| Method | Url |
| --- | --- |
Expand Down Expand Up @@ -346,7 +358,7 @@ Content-Length: xxx
}
```

## Query the information of the specific clone/recover task
## Query the information of the specific clone or recover task

Get all tasks of the specific user, you can limit with:

Expand Down Expand Up @@ -424,7 +436,7 @@ Content-Length: xxx
}
```

## Clean a clone/recover task
## Clean a clone or recover task

Clean the clone/recover task. Delete the temporary cloned file in curvefs server if the task has been failed, otherwise delete the task only.

Expand Down Expand Up @@ -469,7 +481,7 @@ Content-Length: xxx
}
```

## Code Comparison
## Code Comparison

|Code |Message | HTTP Status Code| Description |
| --- | --- | --- | --- |
Expand Down

0 comments on commit 1fd7e98

Please sign in to comment.