aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-08-01 15:31:15 -0400
committerPeter Hunt <pehunt@redhat.com>2019-08-01 15:47:45 -0400
commit834107c82ea50c3299d23c07c04f81b6974202f9 (patch)
tree8f9f7985e518f8f26fb4589c5d3a5183962b91d9 /libpod
parent3acfcb30628ed937200a144817f52ee52cfc2e40 (diff)
downloadpodman-834107c82ea50c3299d23c07c04f81b6974202f9.tar.gz
podman-834107c82ea50c3299d23c07c04f81b6974202f9.tar.bz2
podman-834107c82ea50c3299d23c07c04f81b6974202f9.zip
Add capability functionality to play kube
Take capabilities written in a kube and add to a container adapt test suite and write cap-add/drop tests Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/kube.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/kube.go b/libpod/kube.go
index d46a82856..d0e7baf95 100644
--- a/libpod/kube.go
+++ b/libpod/kube.go
@@ -422,7 +422,7 @@ func determineCapAddDropFromCapabilities(defaultCaps, containerCaps []string) *v
// an added cap
for _, capability := range containerCaps {
if !util.StringInSlice(capability, defaultCaps) {
- if _, ok := dedupAdd[string(capability)]; !ok {
+ if _, ok := dedupAdd[capability]; !ok {
add = append(add, v1.Capability(capability))
dedupAdd[capability] = true
}