aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-02 20:12:25 +0200
committerGitHub <noreply@github.com>2022-09-02 20:12:25 +0200
commitc5da5e459a36c4a64a6f9de777ea791aac0998b2 (patch)
tree3de8514db28352fe64e633ca7f9e04a24285b706 /libpod
parent0e66f75f2a6d3792ae7fd2d77fe8a55b6fbdb0ce (diff)
parent4a1acccf965362eb315b38f9b2cb35a8564aa173 (diff)
downloadpodman-c5da5e459a36c4a64a6f9de777ea791aac0998b2.tar.gz
podman-c5da5e459a36c4a64a6f9de777ea791aac0998b2.tar.bz2
podman-c5da5e459a36c4a64a6f9de777ea791aac0998b2.zip
Merge pull request #15599 from umohnani8/gen-kube
Fix bind-mount-option annotation in gen/play kube
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/config.go2
-rw-r--r--libpod/kube.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/libpod/define/config.go b/libpod/define/config.go
index 34c1a675d..1fad5cc9a 100644
--- a/libpod/define/config.go
+++ b/libpod/define/config.go
@@ -85,4 +85,4 @@ const PassthroughLogging = "passthrough"
const RLimitDefaultValue = uint64(1048576)
// BindMountPrefix distinguishes its annotations from others
-const BindMountPrefix = "bind-mount-options:"
+const BindMountPrefix = "bind-mount-options"
diff --git a/libpod/kube.go b/libpod/kube.go
index a70782d69..d4414aabd 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -385,7 +385,7 @@ func (p *Pod) podWithContainers(ctx context.Context, containers []*Container, po
return nil, err
}
for k, v := range annotations {
- podAnnotations[define.BindMountPrefix+k] = TruncateKubeAnnotation(v)
+ podAnnotations[define.BindMountPrefix] = TruncateKubeAnnotation(k + ":" + v)
}
// Since port bindings for the pod are handled by the
// infra container, wipe them here only if we are sharing the net namespace
@@ -529,7 +529,7 @@ func simplePodWithV1Containers(ctx context.Context, ctrs []*Container) (*v1.Pod,
return nil, err
}
for k, v := range annotations {
- kubeAnnotations[define.BindMountPrefix+k] = TruncateKubeAnnotation(v)
+ kubeAnnotations[define.BindMountPrefix] = TruncateKubeAnnotation(k + ":" + v)
}
if isInit {
kubeInitCtrs = append(kubeInitCtrs, kubeCtr)