Closed srenatus closed 3 years ago
Ouch, that documentation is wrong. PodSecurityContext
(https://github.com/kubernetes/kubernetes/blob/564b0e55c7007745500d579356897848aaacb9dd/staging/src/k8s.io/api/core/v1/types.go#L3238-L3304) does not have allowPrivilegeEscalation
property. Only SecurityContext
, used in Container
(https://github.com/kubernetes/kubernetes/blob/564b0e55c7007745500d579356897848aaacb9dd/staging/src/k8s.io/api/core/v1/types.go#L6089) have it, and thus, containers and init containers.
Does that explain @srenatus? I think we can keep this issue as a reminder to update the documentation. I can take care of that.
The readme says:
But I can't seem to find that reflected in the code, it's only checking containers and init containers. Am I missing something? 😄