mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
Rename isolated to hypervIsolation
Signed-off-by: Vigilans <vigilans@foxmail.com>
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -40,7 +40,7 @@ type containerdExecutor struct {
|
||||
selinux bool
|
||||
traceSocket string
|
||||
rootless bool
|
||||
isolated bool
|
||||
hypervIsolation bool
|
||||
runtime *RuntimeInfo
|
||||
cdiManager *cdidevices.Manager
|
||||
}
|
||||
@@ -74,7 +74,7 @@ type ExecutorOptions struct {
|
||||
Selinux bool
|
||||
TraceSocket string
|
||||
Rootless bool
|
||||
Isolated bool
|
||||
HyperVIsolation bool
|
||||
Runtime *RuntimeInfo
|
||||
CDIManager *cdidevices.Manager
|
||||
}
|
||||
@@ -96,7 +96,7 @@ func New(executorOpts ExecutorOptions) executor.Executor {
|
||||
selinux: executorOpts.Selinux,
|
||||
traceSocket: executorOpts.TraceSocket,
|
||||
rootless: executorOpts.Rootless,
|
||||
isolated: executorOpts.Isolated,
|
||||
hypervIsolation: executorOpts.HyperVIsolation,
|
||||
runtime: executorOpts.Runtime,
|
||||
cdiManager: executorOpts.CDIManager,
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ func (w *containerdExecutor) createOCISpec(ctx context.Context, id, _, _ string,
|
||||
opts := []containerdoci.SpecOpts{
|
||||
containerdoci.WithUser(meta.User),
|
||||
}
|
||||
if w.isolated {
|
||||
if w.hypervIsolation {
|
||||
opts = append(opts, containerdoci.WithWindowsHyperV)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user