Update comment related to seccomp profiles in play kube

Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com>
This commit is contained in:
theunrealgeek
2020-06-03 12:57:08 -07:00
parent 10ebb74d6f
commit a338cd4e8a

View File

@ -446,7 +446,7 @@ func kubeContainerToCreateConfig(ctx context.Context, containerYAML v1.Container
setupSecurityContext(&securityConfig, &userConfig, containerYAML)
// Since we prefix the container name with pod name to work-around the uniqueness requirement,
// seccom stuff should reference the actual container name from the YAML
// the seccom profile should reference the actual container name from the YAML
// but apply to the containers with the prefixed name
securityConfig.SeccompProfilePath = seccompPaths.findForContainer(containerYAML.Name)