Merge pull request #9881 from stevenhorsman/remote-hypervisor-policy

runtime: Support policy in remote hypervisor
This commit is contained in:
Steve Horsman 2024-06-20 14:01:29 +01:00 committed by GitHub
commit d5b4da7331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -766,7 +766,8 @@ func (k *kataAgent) startSandbox(ctx context.Context, sandbox *Sandbox) error {
if sandbox.config.HypervisorType == RemoteHypervisor {
ctx = context.WithValue(ctx, customRequestTimeoutKey, remoteRequestTimeout)
} else {
}
// Check grpc server is serving
if err = k.check(ctx); err != nil {
return err
@ -779,6 +780,7 @@ func (k *kataAgent) startSandbox(ctx context.Context, sandbox *Sandbox) error {
}
}
if sandbox.config.HypervisorType != RemoteHypervisor {
// Setup network interfaces and routes
interfaces, routes, neighs, err := generateVCNetworkStructures(ctx, sandbox.network)
if err != nil {