merge fix/cube-69-envd-token into master
6 file(s) changed+246-31
Mcri-multiplex/pkg/engine/cube/cri.go+1-1
| @@ -173,7 +173,7 @@ func (e *Engine) ExecSync(ctx context.Context, req *runtime.ExecSyncRequest) (*r | |||
| 173 | // Align with the CubeSandbox SDK / direct path: run the command through | 173 | // Align with the CubeSandbox SDK / direct path: run the command through |
| 174 | // guest envd (SandboxIP:49983), which returns stdout/stderr/exit code. | 174 | // guest envd (SandboxIP:49983), which returns stdout/stderr/exit code. |
| 175 | // CubeboxMgr.Exec only returns Ret and is not used here. | 175 | // CubeboxMgr.Exec only returns Ret and is not used here. |
| 176 | - result, err := e.execViaEnvd(ctx, pod.SandboxIP, req.GetCmd(), req.GetTimeout()) | 176 | + result, err := e.execViaEnvd(ctx, pod.SandboxIP, pod.EnvdAccessToken, req.GetCmd(), req.GetTimeout()) |
| 177 | if err != nil { | 177 | if err != nil { |
| 178 | return nil, err | 178 | return nil, err |
| 179 | } | 179 | } |
Mcri-multiplex/pkg/engine/cube/engine.go+35-16
Mcri-multiplex/pkg/engine/cube/engine_test.go+21-0
Mcri-multiplex/pkg/engine/cube/envd_exec.go+98-1
Mcri-multiplex/pkg/engine/cube/envd_exec_test.go+86-11
Mcri-multiplex/pkg/engine/cube/state.go+5-2
Comments
Sign in to comment