Refactor to clean up names.

This commit is contained in:
Brendan Burns
2014-09-16 15:18:33 -07:00
parent 506f51b186
commit dc5a4a8c3f
6 changed files with 10 additions and 10 deletions

View File

@@ -337,7 +337,7 @@ func (kl *Kubelet) runContainer(pod *Pod, container *api.Container, podVolumes v
return "", err
}
privileged := false
if capabilities.GetCapabilities().AllowPrivileged {
if capabilities.Get().AllowPrivileged {
privileged = container.Privileged
} else if container.Privileged {
return "", fmt.Errorf("Container requested privileged mode, but it is disallowed globally.")