Skip to content

Commit

Permalink
correct codespell errors in the imported library
Browse files Browse the repository at this point in the history
Signed-off-by: Humble Chirammal <[email protected]>
  • Loading branch information
humblec committed Dec 13, 2021
1 parent 25b5f05 commit 6a83f70
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 283 deletions.
40 changes: 0 additions & 40 deletions pkg/lib/iscsi/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

31 changes: 0 additions & 31 deletions pkg/lib/iscsi/CONTRIBUTING.md

This file was deleted.

201 changes: 0 additions & 201 deletions pkg/lib/iscsi/LICENSE

This file was deleted.

6 changes: 4 additions & 2 deletions pkg/lib/iscsi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ issued.

## Intended Usage

Curently the intended usage of this library is simply to provide a golang package to standardize how plugins are implementing
iscsi connect and disconnect. It's not intended to be a "service", although that's a possible next step. It's currenty been
Currently, the intended usage of this library is simply to provide a golang
package to standardize how plugins are implementing
iscsi connect and disconnect. It's not intended to be a "service",
although that's a possible next step. It's currently been
used for plugins where iscsid is installed in containers only, as well as designs where it uses the nodes iscsid. Each of these
approaches has their own pros and cons. Currently, it's up to the plugin author to determine which model suits them best
and to deploy their node plugin appropriately.
Expand Down
6 changes: 3 additions & 3 deletions pkg/lib/iscsi/example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ func main() {
SecretsType: "chap"},
// Lun is the lun number the devices uses for exports
Lun: int32(*lun),
// Number of times we check for device path, waiting for CheckInterval seconds inbetween each check (defaults to 10 if omitted)
// Number of times we check for device path, waiting for CheckInterval seconds in between each check (defaults to 10 if omitted)
RetryCount: 11,
// CheckInterval is the time in seconds to wait inbetween device path checks when logging in to a target
// CheckInterval is the time in seconds to wait in between device path checks when logging in to a target
CheckInterval: 1,
}

// Now we can just issue a connection request using our Connector
// A succesful connection will include the device path to access our iscsi volume
// A successful connection will include the device path to access our iscsi volume
path, err := c.Connect()
if err != nil {
log.Printf("Error returned from c.Connect: %s", err.Error())
Expand Down
6 changes: 3 additions & 3 deletions pkg/lib/iscsi/iscsi/iscsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
sleep = time.Sleep
)

// iscsiSession contains information avout an iSCSI session
// iscsiSession contains information about an iSCSI session
type iscsiSession struct {
Protocol string
ID int32
Expand Down Expand Up @@ -239,7 +239,7 @@ func getMultipathDevice(devices []Device) (*Device, error) {
return multipathDevice, nil
}

// Connect is for backward-compatiblity with c.Connect()
// Connect is for backward-compatibility with c.Connect()
func Connect(c Connector) (string, error) {
return c.Connect()
}
Expand Down Expand Up @@ -477,7 +477,7 @@ func GetSCSIDevices(devicePaths []string, strict bool) ([]Device, error) {

deviceInfo, err := lsblk(devicePaths, strict)
if err != nil {
debug.Printf("An error occured while looking info about SCSI devices: %v", err)
debug.Printf("An error occurred while looking info about SCSI devices: %v", err)
return nil, err
}

Expand Down
6 changes: 3 additions & 3 deletions vendor/github.com/kubernetes-csi/csi-lib-iscsi/iscsi/iscsi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a83f70

Please sign in to comment.