Skip to content

Commit

Permalink
Improve the doc and fix some errors in the `vineyardctl create csidri…
Browse files Browse the repository at this point in the history
…ver` API (#1576)

* Improve the doc.
* Change the image of Vineyard CSI Driver to `vineyard-operator` by default.
* Fix the csidriver template errors.

Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji authored Sep 21, 2023
1 parent 00ccfe3 commit b8da0ca
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Next, we will show you how to use the Vineyard CSI Driver to speed up a kubeflow
Prerequisites
=============

- A kubernetes cluster with version >= 1.25.10. If you don't have one by hand, you can refer to the
guide `Initialize Kubernetes Cluster`_ to create one.
- A kubernetes cluster with version >= 1.25.10. If you don't have one by hand, you can refer to the guide `Initialize Kubernetes Cluster`_ to create one.
- Install the `Vineyardctl`_ by following the official guide.
- Install the `Argo Workflow CLI`_ by following the official guide.

Expand Down Expand Up @@ -50,6 +49,11 @@ deployment is ready as follows:
Then deploy the vineyard csi driver which specifies the vineyard cluster to use:

.. tip::

If you want to look into the debug logs of the vineyard csi driver, you can add a
flag ``--verbose`` in the following command.

.. code:: bash
$ vineyardctl deploy csidriver --clusters vineyard-system/vineyardd-sample
Expand Down Expand Up @@ -138,7 +142,7 @@ kind cluster. Then apply the data volume as follows:
.. tip::

If you already have nfs volume that can be accessed by the kubernetes cluster,
you can update the prepare-data.yaml to use your nfs volume.
you can update the ``prepare-data.yaml`` to use your nfs volume.

.. code:: bash
Expand Down
2 changes: 1 addition & 1 deletion k8s/cmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ vineyardctl deploy csidriver [flags]
--clusters strings The list of vineyard clusters.
--enableToleration Enable toleration for vineyard csi driver.
-h, --help help for csidriver
-i, --image string The image of vineyard csi driver. (default "vineyardcloudnative/vineyard-csi-driver")
-i, --image string The image of vineyard csi driver. (default "vineyardcloudnative/vineyard-operator")
--imagePullPolicy string The image pull policy of vineyard csi driver. (default "IfNotPresent")
--livenessProbeImage string The image of livenessProbe. (default "registry.k8s.io/sig-storage/livenessprobe:v2.8.0")
--name string The name of the csi driver cr. (default "csidriver-sample")
Expand Down
2 changes: 1 addition & 1 deletion k8s/cmd/commands/flags/csidriver_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ApplyCSIDriverClustersOpts(cmd *cobra.Command) {
func ApplyCSIDriverOpts(cmd *cobra.Command) {
ApplyCSIDriverNameOpts(cmd)
cmd.Flags().StringVarP(&CSIDriverOpts.Image, "image", "i",
"vineyardcloudnative/vineyard-csi-driver",
"vineyardcloudnative/vineyard-operator",
"The image of vineyard csi driver.")
cmd.Flags().StringVarP(&CSIDriverOpts.ImagePullPolicy, "imagePullPolicy", "",
"IfNotPresent", "The image pull policy of vineyard csi driver.")
Expand Down
2 changes: 1 addition & 1 deletion k8s/pkg/templates/csidriver/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
- --state-file-path=/csi/state
{{ if .Spec.EnableDebugLog }}
{{ if .Spec.EnableVerboseLog }}
- --verbose
{{ end }}
env:
Expand Down
2 changes: 1 addition & 1 deletion k8s/pkg/templates/csidriver/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- --endpoint=$(CSI_ENDPOINT)
- --nodeid=$(KUBE_NODE_NAME)
- --state-file-path=/csi/state
{{ if .Spec.EnableDebugLog }}
{{ if .Spec.EnableVerboseLog }}
- --verbose
{{ end }}
env:
Expand Down

0 comments on commit b8da0ca

Please sign in to comment.