summaryrefslogtreecommitdiff
path: root/libpod/define/config.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2021-09-29 14:57:33 -0500
committerBrent Baude <bbaude@redhat.com>2021-09-30 10:49:14 -0500
commit1ff6a5082a440fe4a4c3f3670534ab6185d26752 (patch)
tree8018f0ee002631fc383ac8fbd12ebebcec6ed1ab /libpod/define/config.go
parent966b6030fa5cc31c163e344b64109eddeffc3529 (diff)
downloadpodman-1ff6a5082a440fe4a4c3f3670534ab6185d26752.tar.gz
podman-1ff6a5082a440fe4a4c3f3670534ab6185d26752.tar.bz2
podman-1ff6a5082a440fe4a4c3f3670534ab6185d26752.zip
Support selinux options with bind mounts play/gen
When using play kube and generate kube, we need to support if bind mounts have selinux options. As kubernetes does not support selinux in this way, we tuck the selinux values into a pod annotation for generation of the kube yaml. Then on play, we check annotations to see if a value for the mount exists and apply it. Fixes BZ #1984081 Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/define/config.go')
-rw-r--r--libpod/define/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/config.go b/libpod/define/config.go
index 7a0d39e42..a5cf07afc 100644
--- a/libpod/define/config.go
+++ b/libpod/define/config.go
@@ -90,3 +90,6 @@ const (
// DefaultRlimitValue is the value set by default for nofile and nproc
const RLimitDefaultValue = uint64(1048576)
+
+// BindMountPrefix distinguishes its annotations from others
+const BindMountPrefix = "bind-mount-options:"