doc: fix code spelling issues

This commit is contained in:
andyzhangx 2022-02-12 05:06:11 +00:00
parent 013e1d9279
commit 09e579235e
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ $ kubectl logs csi-nfs-controller-56bfddd689-dh5tk -c nfs -n kube-system > csi-n
> note: there could be multiple controller pods, if there are no helpful logs, try to get logs from other controller pods > note: there could be multiple controller pods, if there are no helpful logs, try to get logs from other controller pods
### Case#2: volume mount/unmount failed ### Case#2: volume mount/unmount failed
- locate csi driver pod and figure out which pod does tha actual volume mount/unmount - locate csi driver pod that does the actual volume mount/unmount
```console ```console
$ kubectl get pod -o wide -n kube-system | grep csi-nfs-node $ kubectl get pod -o wide -n kube-system | grep csi-nfs-node

View File

@ -44,7 +44,7 @@ func (t *DynamicallyProvisionedReclaimPolicyTest) Run(client clientset.Interface
if tpvc.ReclaimPolicy() == v1.PersistentVolumeReclaimRetain { if tpvc.ReclaimPolicy() == v1.PersistentVolumeReclaimRetain {
tpvc.WaitForPersistentVolumePhase(v1.VolumeReleased) tpvc.WaitForPersistentVolumePhase(v1.VolumeReleased)
tpvc.DeleteBoundPersistentVolume() tpvc.DeleteBoundPersistentVolume()
// The controler server cannot resolve the nfs server hosting inside the testing k8s cluster, skipping the cleanup step. // The controller server cannot resolve the nfs server hosting inside the testing k8s cluster, skipping the cleanup step.
// tpvc.DeleteBackingVolume(&t.ControllerServer) // tpvc.DeleteBackingVolume(&t.ControllerServer)
} }
} }

View File

@ -67,7 +67,7 @@ var podFailedCondition = func(pod *v1.Pod) (bool, error) {
ginkgo.By("Saw pod failure") ginkgo.By("Saw pod failure")
return true, nil return true, nil
case v1.PodSucceeded: case v1.PodSucceeded:
return true, fmt.Errorf("pod %q successed with reason: %q, message: %q", pod.Name, pod.Status.Reason, pod.Status.Message) return true, fmt.Errorf("pod %q succeeded with reason: %q, message: %q", pod.Name, pod.Status.Reason, pod.Status.Message)
default: default:
return false, nil return false, nil
} }