From 684b544e9c45129a3d8112cfab22526440d8fd13 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 24 May 2018 17:50:37 -0700 Subject: Spell check strings and comments Signed-off-by: Jhon Honce Closes: #831 Approved by: rhatdan --- pkg/annotations/annotations.go | 2 +- pkg/registries/registries.go | 2 +- pkg/secrets/secrets.go | 2 +- pkg/spec/ports.go | 2 +- pkg/varlinkapi/containers.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'pkg') diff --git a/pkg/annotations/annotations.go b/pkg/annotations/annotations.go index 151d93904..008cca7ee 100644 --- a/pkg/annotations/annotations.go +++ b/pkg/annotations/annotations.go @@ -79,7 +79,7 @@ const ( // StdinOnce is the stdin_once annotation StdinOnce = "io.kubernetes.cri-o.StdinOnce" - // Volumes is the volumes annotatoin + // Volumes is the volumes annotation Volumes = "io.kubernetes.cri-o.Volumes" ) diff --git a/pkg/registries/registries.go b/pkg/registries/registries.go index 8e43c8b91..844d2c415 100644 --- a/pkg/registries/registries.go +++ b/pkg/registries/registries.go @@ -22,7 +22,7 @@ func GetRegistries() ([]string, error) { return searchRegistries, nil } -// GetInsecureRegistries obtains the list of inseure registries from the global registration file. +// GetInsecureRegistries obtains the list of insecure registries from the global registration file. func GetInsecureRegistries() ([]string, error) { registryConfigPath := "" envOverride := os.Getenv("REGISTRIES_CONFIG_PATH") diff --git a/pkg/secrets/secrets.go b/pkg/secrets/secrets.go index 0e48c7a12..1b525de83 100644 --- a/pkg/secrets/secrets.go +++ b/pkg/secrets/secrets.go @@ -237,7 +237,7 @@ func addSecretsFromMountsFile(filePath, mountLabel, containerWorkingDir, mountPr return mounts, nil } -// addFIPSModeSecret creates /run/secrets/system-fips in the container +// addFIPSsModeSecret creates /run/secrets/system-fips in the container // root filesystem if /etc/system-fips exists on hosts. // This enables the container to be FIPS compliant and run openssl in // FIPS mode as the host is also in FIPS mode. diff --git a/pkg/spec/ports.go b/pkg/spec/ports.go index 4d9a625bf..bdd26bd83 100644 --- a/pkg/spec/ports.go +++ b/pkg/spec/ports.go @@ -36,7 +36,7 @@ func ExposedPorts(expose, publish []string, publishAll bool, imageExposedPorts m } } - // parse user input'd port bindings + // parse user inputted port bindings pbPorts, portBindings, err := nat.ParsePortSpecs(publish) if err != nil { return nil, err diff --git a/pkg/varlinkapi/containers.go b/pkg/varlinkapi/containers.go index 43ab3c995..2d3a731e9 100644 --- a/pkg/varlinkapi/containers.go +++ b/pkg/varlinkapi/containers.go @@ -273,7 +273,7 @@ func (i *LibpodAPI) StartContainer(call ioprojectatomicpodman.VarlinkCall, name return call.ReplyErrorOccurred(err.Error()) } if state == libpod.ContainerStateRunning || state == libpod.ContainerStatePaused { - return call.ReplyErrorOccurred("container is alrady running or paused") + return call.ReplyErrorOccurred("container is already running or paused") } if err := ctr.Start(getContext()); err != nil { return call.ReplyErrorOccurred(err.Error()) -- cgit v1.2.3-54-g00ecf