Skip to content

Commit

Permalink
Merge pull request containers#7587 from ParkerVR/kube-underscores
Browse files Browse the repository at this point in the history
Allowed underscores to remain in name for YAML (Kube generate)
  • Loading branch information
openshift-merge-robot authored Sep 11, 2020
2 parents 26fb8d2 + aaf18e0 commit 2a63794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,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: removeUnderscores(podName),
Name: 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
Expand Down

0 comments on commit 2a63794

Please sign in to comment.