Rename isolated to hypervIsolation

Signed-off-by: Vigilans <vigilans@foxmail.com>
This commit is contained in:
Vigilans committed 2025-09-16 23:59:37 +08:00
1 parent 209509356a
commit 30ef2919a9
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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)
}