Skip to content

Commit

Permalink
doc: fix spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Feb 11, 2022
1 parent 1534d0d commit 4d9f0e2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
with:
check_filenames: true
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,./release-tools/prow.sh,./pkg/lib/iscsi/
ignore_words_list: "lun,targetportal"
ignore_words_list: "AKS,aks"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ follow guide [here](./docs/install-driver-on-aks.md)
- This option depends on [cloud provider config file](https://github.com/kubernetes/cloud-provider-azure/blob/master/docs/cloud-provider-config.md), usually it's `/etc/kubernetes/azure.json` on agent nodes deployed by [AKS](https://docs.microsoft.com/en-us/azure/aks/) or [aks-engine](https://github.com/Azure/aks-engine), here is [azure.json example](./deploy/example/azure.json). <details> <summary>specify a different cloud provider config file</summary></br>create `azure-cred-file` configmap before driver installation, e.g. for OpenShift, it's `/etc/kubernetes/cloud.conf` (make sure config file path is in the `volumeMounts.mountPath`)
</br><pre>```kubectl create configmap azure-cred-file --from-literal=path="/etc/kubernetes/cloud.conf" --from-literal=path-windows="C:\\k\\cloud.conf" -n kube-system```</pre></details>

- This driver also supports [read cloud config from kuberenetes secret](./docs/read-from-secret.md) as first priority
- This driver also supports [read cloud config from kubernetes secret](./docs/read-from-secret.md) as first priority
- Make sure identity used by driver has `Contributor` role on node resource group
- [How to set up CSI driver on Azure RedHat OpenShift(ARO)](https://github.com/ezYakaEagle442/aro-pub-storage/blob/master/setup-store-CSI-driver-azure-blob.md)

Expand Down
2 changes: 1 addition & 1 deletion pkg/blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ type Driver struct {
subnetLockMap *util.LockMap
// a map storing all volumes created by this driver <volumeName, accountName>
volMap sync.Map
// a timed cache storing acount search history (solve account list throttling issue)
// a timed cache storing account search history (solve account list throttling issue)
accountSearchCache *azcache.TimedCache
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/blob/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe
return nil, status.Error(codes.Internal, fmt.Sprintf("volume(%s) mount %q on %q failed with %v", volumeID, source, targetPath, err))
}

// set permisssions for NFSv3 root folder
// set permissions for NFSv3 root folder
if err := os.Chmod(targetPath, os.FileMode(d.mountPermissions)); err != nil {
return nil, status.Error(codes.Internal, fmt.Sprintf("Chmod(%s) failed with %v", targetPath, err))
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ const (
tagKeyValueDelimiter = "="
)

// RoundUpBytes rounds up the volume size in bytes upto multiplications of GiB
// RoundUpBytes rounds up the volume size in bytes up to multiplications of GiB
// in the unit of Bytes
func RoundUpBytes(volumeSizeBytes int64) int64 {
return roundUpSize(volumeSizeBytes, GiB) * GiB
}

// RoundUpGiB rounds up the volume size in bytes upto multiplications of GiB
// RoundUpGiB rounds up the volume size in bytes up to multiplications of GiB
// in the unit of GiB
func RoundUpGiB(volumeSizeBytes int64) int64 {
return roundUpSize(volumeSizeBytes, GiB)
Expand Down

0 comments on commit 4d9f0e2

Please sign in to comment.