From f75d6e38a36d400411f827696ec0de754e63af80 Mon Sep 17 00:00:00 2001 From: spyang Date: Tue, 14 Dec 2021 15:55:07 +0800 Subject: [PATCH 1/2] add docs content --- docs/curve-interface/curve-cli.md | 9 ++++++++ docs/curve-interface/curve-nbd.md | 5 +++++ .../curve-interface/snapshot-clone-service.md | 22 ++++++++++++++----- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/docs/curve-interface/curve-cli.md b/docs/curve-interface/curve-cli.md index 7554adb..c5b6397 100644 --- a/docs/curve-interface/curve-cli.md +++ b/docs/curve-interface/curve-cli.md @@ -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` diff --git a/docs/curve-interface/curve-nbd.md b/docs/curve-interface/curve-nbd.md index fc71778..2b2c6fc 100644 --- a/docs/curve-interface/curve-nbd.md +++ b/docs/curve-interface/curve-nbd.md @@ -2,6 +2,11 @@ Map/unmap the curve device. +- [Usage](#usage) +- [Map](#map) +- [List mapped](#list-mapped) +- [Unmap](#unmap) + ### Usage ``` diff --git a/docs/curve-interface/snapshot-clone-service.md b/docs/curve-interface/snapshot-clone-service.md index 2593558..e21ca16 100644 --- a/docs/curve-interface/snapshot-clone-service.md +++ b/docs/curve-interface/snapshot-clone-service.md @@ -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 | @@ -209,7 +221,7 @@ Content-Length: xxx } ``` -## Clone +## Clone | Method | Url | | --- | --- | @@ -303,7 +315,7 @@ Content-Length: xxx } ``` -## Flatten: recover lazy-cloned volume +## Flatten | Method | Url | | --- | --- | @@ -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: @@ -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. @@ -469,7 +481,7 @@ Content-Length: xxx } ``` -## Code Comparison +## Code Comparison |Code |Message | HTTP Status Code| Description | | --- | --- | --- | --- | From ed5f29bf506bb602c6ebb51cae2fac26e59a80be Mon Sep 17 00:00:00 2001 From: spyang Date: Tue, 14 Dec 2021 15:58:19 +0800 Subject: [PATCH 2/2] release v2.0.0 --- CHANGELOG.md | 5 +++++ charts/curve-csi/Chart.yaml | 2 +- charts/curve-csi/values.yaml | 4 ++-- deploy/manifests/node-plugin-daemonset.yaml | 2 +- deploy/manifests/provisioner-deploy.yaml | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d19fc5..41ca376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v2.0.0 + +- support snapshot +- support clone/restore + ## v2.0.0-alpha - update csi spec to v1.5.0 diff --git a/charts/curve-csi/Chart.yaml b/charts/curve-csi/Chart.yaml index d4a4a30..216b41b 100644 --- a/charts/curve-csi/Chart.yaml +++ b/charts/curve-csi/Chart.yaml @@ -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" diff --git a/charts/curve-csi/values.yaml b/charts/curve-csi/values.yaml index fab2ab6..d541964 100644 --- a/charts/curve-csi/values.yaml +++ b/charts/curve-csi/values.yaml @@ -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: {} @@ -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: {} diff --git a/deploy/manifests/node-plugin-daemonset.yaml b/deploy/manifests/node-plugin-daemonset.yaml index 18dc058..3e313a4 100644 --- a/deploy/manifests/node-plugin-daemonset.yaml +++ b/deploy/manifests/node-plugin-daemonset.yaml @@ -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 diff --git a/deploy/manifests/provisioner-deploy.yaml b/deploy/manifests/provisioner-deploy.yaml index ea569a2..69301e2 100644 --- a/deploy/manifests/provisioner-deploy.yaml +++ b/deploy/manifests/provisioner-deploy.yaml @@ -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