Set SCC allowPrivilegeEscalation to true when container build enabled (#1596)
* Set SCC allowPrivilegeEscalation to true when container build enabled Running Podman inside a container in OpenShift requires the pod to have allowPrivilegeEscalation: true in its security context. * Fix tests Signed-off-by: Angel Misevski <amisevsk@redhat.com>pull/1600/head
parent
6110221447
commit
3d07ff759a
|
|
@ -154,6 +154,6 @@ var (
|
|||
"SETUID",
|
||||
},
|
||||
},
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(false),
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(true),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ func TestReconcileDevWorkspaceConfigPerUserStorage(t *testing.T) {
|
|||
"SETUID",
|
||||
},
|
||||
},
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(false),
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(true),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -434,7 +434,7 @@ func TestReconcileDevWorkspaceConfigPerUserStorage(t *testing.T) {
|
|||
"SETUID",
|
||||
},
|
||||
},
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(false),
|
||||
AllowPrivilegeEscalation: pointer.BoolPtr(true),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue