cri-o/server
W. Trevor King 523326b7ba server/container_create: Factor out setupCapabilities helper
Having a separate function holding the details of this makes reading
createSandboxContainer easier.

While I was moving the code, I've also cleaned up two things:

* The nil capabilities check is now earlier, where before it had been
  between the ALL handling and the non-ALL handling.

* I've added a capPrefixed variable to avoid having multiple
  toCAPPrefixed calls per capability.

Signed-off-by: W. Trevor King <wking@tremily.us>
2018-01-19 11:52:45 -08:00
..
apparmor container_create: fix apparmor from container config 2017-11-30 16:12:16 +01:00
fixtures Adding unit tests for server/secrets.go 2017-11-29 17:42:19 +08:00
metrics server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
seccomp container_create: fix seccomp annotations 2017-09-25 21:08:11 +02:00
config.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
config_test.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
container_attach.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_create.go server/container_create: Factor out setupCapabilities helper 2018-01-19 11:52:45 -08:00
container_exec.go container_exec: fix terminal true process json 2017-12-07 20:51:05 +01:00
container_execsync.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_list.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
container_portforward.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_remove.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_start.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_stats.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_stats_list.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_status.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
container_stop.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
container_update_resources.go allow update running/created container. 2017-11-11 11:04:07 -05:00
container_updateruntimeconfig.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
image_fs_info.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
image_list.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
image_pull.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
image_remove.go Switch to ImageServer.UntagImage in RemoveImage handler 2017-12-14 14:23:53 -05:00
image_status.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
inspect.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
inspect_test.go Return image references from the storage package 2017-12-14 14:23:52 -05:00
naming.go server: Rename infra container to POD 2017-09-01 08:47:55 -07:00
runtime_status.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
sandbox_list.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_network.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_remove.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
sandbox_run.go Allow additional arguments to be passed into hooks 2018-01-09 13:44:16 -05:00
sandbox_status.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00
sandbox_stop.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
secrets.go Fixed logic flaw in the secrets mounts 2017-10-17 13:08:42 -04:00
secrets_test.go Adding unit tests for server/secrets.go 2017-11-29 17:42:19 +08:00
server.go libkpod -> lib rename 2017-11-30 17:08:26 +01:00
utils.go Merge pull request #1192 from runcom/no-libkpod 2017-12-01 08:44:44 -05:00
utils_test.go container_create: correctly set image and kube envs 2017-11-30 12:28:50 +01:00
version.go server: add prometheus metrics for CRI operations 2017-11-09 16:51:00 +01:00