Merge pull request #118691 from giuseppe/drop-check-for-volumes

apis: drop check for volumes with user namespaces
This commit is contained in:
Kubernetes Prow Robot
2023-06-29 16:23:56 -07:00
committed by GitHub
9 changed files with 17 additions and 37 deletions

View File

@@ -21740,8 +21740,8 @@ func TestValidateHostUsers(t *testing.T) {
}},
},
}, {
name: "hostUsers=false - unsupported volume",
success: false,
name: "hostUsers=false - stateful volume",
success: true,
spec: &core.PodSpec{
SecurityContext: &core.PodSecurityContext{
HostUsers: &falseVar,
@@ -21754,7 +21754,6 @@ func TestValidateHostUsers(t *testing.T) {
}},
},
}, {
// It should ignore unsupported volumes with hostUsers=true.
name: "hostUsers=true - unsupported volume",
success: true,
spec: &core.PodSpec{