diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-11 21:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 21:35:45 +0200 |
commit | d614372c2f39cea32641ec92c84a9e48657cfb41 (patch) | |
tree | 032338943b478c70e6ded7c103cea0311481cca8 /libpod/kube.go | |
parent | 2b64f8844655b7188332a404ec85d32c33feb9e9 (diff) | |
parent | a78c885397ad2938b9b21438bcfa8a00dd1eb03f (diff) | |
download | podman-d614372c2f39cea32641ec92c84a9e48657cfb41.tar.gz podman-d614372c2f39cea32641ec92c84a9e48657cfb41.tar.bz2 podman-d614372c2f39cea32641ec92c84a9e48657cfb41.zip |
Merge pull request #3552 from baude/golangcilint2
golangci-lint pass number 2
Diffstat (limited to 'libpod/kube.go')
-rw-r--r-- | libpod/kube.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index 409937010..b114cda72 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -1,7 +1,6 @@ package libpod import ( - "fmt" "math/rand" "os" "strconv" @@ -179,7 +178,7 @@ func addContainersAndVolumesToPodObject(containers []v1.Container, volumes []v1. labels["app"] = removeUnderscores(podName) om := v12.ObjectMeta{ // The name of the pod is container_name-libpod - Name: fmt.Sprintf("%s", removeUnderscores(podName)), + Name: removeUnderscores(podName), Labels: labels, // CreationTimestamp seems to be required, so adding it; in doing so, the timestamp // will reflect time this is run (not container create time) because the conversion |