aboutsummaryrefslogtreecommitdiff
path: root/libpod/kube.go
diff options
context:
space:
mode:
authoraonoa <1991849113@qq.com>2022-04-25 15:47:24 +0800
committeraonoa <1991849113@qq.com>2022-04-25 15:47:24 +0800
commit94d043be8ce99ba13c13ea3c47bec82f94f35cf5 (patch)
tree1c14bf0d4bb572167fcda9690bc6d66bd0ab2d9b /libpod/kube.go
parentba6356280a86531d3cda7016859aef98bb3d8272 (diff)
downloadpodman-94d043be8ce99ba13c13ea3c47bec82f94f35cf5.tar.gz
podman-94d043be8ce99ba13c13ea3c47bec82f94f35cf5.tar.bz2
podman-94d043be8ce99ba13c13ea3c47bec82f94f35cf5.zip
Modify the pod name suffix '_pod' to '-pod'
Signed-off-by: aonoa <1991849113@qq.com>
Diffstat (limited to 'libpod/kube.go')
-rw-r--r--libpod/kube.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/kube.go b/libpod/kube.go
index 5e5260dd5..eb62643fe 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -525,9 +525,9 @@ func simplePodWithV1Containers(ctx context.Context, ctrs []*Container) (*v1.Pod,
}
podName := strings.ReplaceAll(ctrs[0].Name(), "_", "")
// Check if the pod name and container name will end up conflicting
- // Append _pod if so
+ // Append -pod if so
if util.StringInSlice(podName, ctrNames) {
- podName = podName + "_pod"
+ podName = podName + "-pod"
}
return newPodObject(