mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-08 00:27:54 +00:00
Merge pull request #11943 from baude/issue11929
No space in kube annotations for bind mounts
This commit is contained in:
commit
0b8673d0e7
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ func (p *Pod) podWithContainers(ctx context.Context, containers []*Container, po
|
|||
return nil, err
|
||||
}
|
||||
for k, v := range annotations {
|
||||
podAnnotations[define.BindMountPrefix+k] = v
|
||||
podAnnotations[define.BindMountPrefix+k] = strings.TrimSpace(v)
|
||||
}
|
||||
// Since port bindings for the pod are handled by the
|
||||
// infra container, wipe them here.
|
||||
|
|
@ -366,7 +366,7 @@ func simplePodWithV1Containers(ctx context.Context, ctrs []*Container) (*v1.Pod,
|
|||
return nil, err
|
||||
}
|
||||
for k, v := range annotations {
|
||||
kubeAnnotations[define.BindMountPrefix+k] = v
|
||||
kubeAnnotations[define.BindMountPrefix+k] = strings.TrimSpace(v)
|
||||
}
|
||||
if isInit {
|
||||
kubeInitCtrs = append(kubeInitCtrs, kubeCtr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue