Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 8f17a93

Browse files
committed
cli: add namespace requirements to default spec
So that the Kata agent can run a bundle with the default spec. Signed-off-by: Peng Tao <[email protected]>
1 parent 0f5bf4a commit 8f17a93

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

cli/spec.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ var specCommand = cli.Command{
4646
Hostname: "shell",
4747
Linux: &specs.Linux{
4848
Resources: &specs.LinuxResources{},
49+
Namespaces: []specs.LinuxNamespace{
50+
{Type: "pid"},
51+
{Type: "network"},
52+
{Type: "ipc"},
53+
{Type: "uts"},
54+
},
4955
},
5056
}
5157

tests/go-integration/init_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ var (
4949
Hostname: "shell",
5050
Linux: &specs.Linux{
5151
Resources: &specs.LinuxResources{},
52+
Namespaces: []specs.LinuxNamespace{
53+
{Type: "pid"},
54+
{Type: "network"},
55+
{Type: "ipc"},
56+
{Type: "uts"},
57+
},
5258
},
5359
}
5460
)

0 commit comments

Comments
 (0)