aboutsummaryrefslogtreecommitdiff
path: root/libpod/kube.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-01-08 09:06:52 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-01-11 06:32:19 -0500
commit4093b2c0111369f9590d803c53a40b79ae2fd1dd (patch)
treee58afcb19ad4b1824e190e368d23630e55e1fd7d /libpod/kube.go
parent0e9c208d3f9fc6f160f7e7746119ddf99ae6f220 (diff)
downloadpodman-4093b2c0111369f9590d803c53a40b79ae2fd1dd.tar.gz
podman-4093b2c0111369f9590d803c53a40b79ae2fd1dd.tar.bz2
podman-4093b2c0111369f9590d803c53a40b79ae2fd1dd.zip
Add codespell to validate spelling mistakes in code.
Fix all errors found by codespell Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/kube.go')
-rw-r--r--libpod/kube.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/kube.go b/libpod/kube.go
index 6ae3e3d07..e0f79ac11 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -310,13 +310,13 @@ func ocicniPortMappingToContainerPort(portMappings []ocicni.PortMapping) ([]v1.C
func libpodEnvVarsToKubeEnvVars(envs []string) ([]v1.EnvVar, error) {
var envVars []v1.EnvVar
for _, e := range envs {
- splitE := strings.SplitN(e, "=", 2)
- if len(splitE) != 2 {
+ split := strings.SplitN(e, "=", 2)
+ if len(split) != 2 {
return envVars, errors.Errorf("environment variable %s is malformed; should be key=value", e)
}
ev := v1.EnvVar{
- Name: splitE[0],
- Value: splitE[1],
+ Name: split[0],
+ Value: split[1],
}
envVars = append(envVars, ev)
}