Create a task describing Pod process namespace sharing (#7489)

This commit is contained in:
Lee Verberne
2018-03-10 09:50:11 +01:00
committed by k8s-ci-robot
parent 5ffc1e29c0
commit 700209bacb
5 changed files with 133 additions and 0 deletions
+3
View File
@@ -414,6 +414,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"security-context-2": {&api.Pod{}},
"security-context-3": {&api.Pod{}},
"security-context-4": {&api.Pod{}},
"share-process-namespace": {&api.Pod{}},
"task-pv-claim": {&api.PersistentVolumeClaim{}},
"task-pv-pod": {&api.Pod{}},
"task-pv-volume": {&api.PersistentVolume{}},
@@ -589,6 +590,8 @@ func TestExampleObjectSchemas(t *testing.T) {
capabilities.SetForTests(capabilities.Capabilities{
AllowPrivileged: true,
})
// PodShareProcessNamespace needed for example share-process-namespace.yaml
utilfeature.DefaultFeatureGate.Set("PodShareProcessNamespace=true")
for path, expected := range cases {
tested := 0