Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for podSandboxId (0.42 sec)

  1. pkg/kubelet/cm/helpers.go

    	for _, c := range containerList {
    		if _, exists := podSandboxMap[c.PodSandboxId]; !exists {
    			klog.InfoS("No PodSandBox found for the container", "podSandboxId", c.PodSandboxId, "containerName", c.Metadata.Name, "containerId", c.Id)
    			continue
    		}
    		podUID := podSandboxMap[c.PodSandboxId]
    		containerMap.Add(podUID, c.Metadata.Name, c.Id)
    		if c.State == runtimeapi.ContainerState_CONTAINER_RUNNING {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/runtime/impl.go

    	return runtimeService.StopPodSandbox(ctx, sandboxID)
    }
    
    func (*defaultImpl) RemovePodSandbox(ctx context.Context, runtimeService criapi.RuntimeService, podSandboxID string) error {
    	return runtimeService.RemovePodSandbox(ctx, podSandboxID)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/instrumented_services.go

    func (in instrumentedRuntimeService) StopPodSandbox(ctx context.Context, podSandboxID string) error {
    	const operation = "stop_podsandbox"
    	defer recordOperation(operation, time.Now())
    
    	err := in.service.StopPodSandbox(ctx, podSandboxID)
    	recordError(operation, err)
    	return err
    }
    
    func (in instrumentedRuntimeService) RemovePodSandbox(ctx context.Context, podSandboxID string) error {
    	const operation = "remove_podsandbox"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cri_stats_provider.go

    			continue
    		}
    
    		podSandboxID := container.PodSandboxId
    		podSandbox, found := podSandboxMap[podSandboxID]
    		if !found {
    			continue
    		}
    
    		// Creates the stats of the pod (if not created yet) which the
    		// container belongs to.
    		ps, found := sandboxIDToPodStats[podSandboxID]
    		if !found {
    			ps = buildPodStats(podSandbox)
    			sandboxIDToPodStats[podSandboxID] = ps
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  5. pkg/kubelet/server/server_websocket_test.go

    				if test.uid {
    					assert.Equal(t, testUID, string(uid), "uid")
    				}
    			}
    
    			ss.fakeRuntime.portForwardFunc = func(podSandboxID string, port int32, stream io.ReadWriteCloser) error {
    				defer close(portForwardFuncDone)
    				assert.Equal(t, testPodSandboxID, podSandboxID, "pod sandbox id")
    				// The port should be valid if it reaches here.
    				testPort, err := strconv.ParseInt(test.port, 10, 32)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		}
    	}
    
    	podSandBoxID, err := m.runtimeService.RunPodSandbox(ctx, podSandboxConfig, runtimeHandler)
    	if err != nil {
    		message := fmt.Sprintf("Failed to create sandbox for pod %q: %v", format.Pod(pod), err)
    		klog.ErrorS(err, "Failed to create sandbox for pod", "pod", klog.KObj(pod))
    		return "", message, err
    	}
    
    	return podSandBoxID, "", nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    			return
    		}
    		klog.V(4).InfoS("Created PodSandbox for pod", "podSandboxID", podSandboxID, "pod", klog.KObj(pod))
    
    		resp, err := m.runtimeService.PodSandboxStatus(ctx, podSandboxID, false)
    		if err != nil {
    			ref, referr := ref.GetReference(legacyscheme.Scheme, pod)
    			if referr != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    	}
    
    	sandboxes, err := cgc.manager.getKubeletSandboxes(ctx, true)
    	if err != nil {
    		return err
    	}
    
    	// collect all the PodSandboxId of container
    	sandboxIDs := sets.New[string]()
    	for _, container := range containers {
    		sandboxIDs.Insert(container.PodSandboxId)
    	}
    
    	sandboxesByPod := make(sandboxesByPodUID, len(sandboxes))
    	for _, sandbox := range sandboxes {
    		podUID := types.UID(sandbox.Metadata.Uid)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server_test.go

    	return f.attachFunc(containerID, stdin, stdout, stderr, tty, resize)
    }
    
    func (f *fakeRuntime) PortForward(_ context.Context, podSandboxID string, port int32, stream io.ReadWriteCloser) error {
    	return f.portForwardFunc(podSandboxID, port, stream)
    }
    
    type testStreamingServer struct {
    	streaming.Server
    	fakeRuntime    *fakeRuntime
    	testHTTPServer *httptest.Server
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	assert.NoError(t, err, "generatePodSandboxConfig for sandbox template %+v", template)
    
    	podSandboxID := apitest.BuildSandboxName(config.Metadata)
    	podSandBoxStatus := &apitest.FakePodSandbox{
    		PodSandboxStatus: runtimeapi.PodSandboxStatus{
    			Id:        podSandboxID,
    			Metadata:  config.Metadata,
    			State:     template.state,
    			CreatedAt: template.createdAt,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
Back to top