Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 442 for ContainerT (0.15 sec)

  1. pkg/test/kube/dump.go

    	for _, pod := range pods {
    		isVM := checkIfVM(pod)
    		containers := append(pod.Spec.Containers, pod.Spec.InitContainers...)
    		for _, container := range containers {
    			l, err := c.PodLogs(context.TODO(), pod.Name, pod.Namespace, container.Name, false /* previousLog */)
    			if err != nil {
    				scopes.Framework.Warnf("Unable to get logs for cluster/pod/container: %s/%s/%s/%s for: %v",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. pkg/kubelet/metrics/collectors/resource_metrics_test.go

    				# TYPE scrape_error gauge
    				scrape_error 0
    				# HELP resource_scrape_error [STABLE] 1 if there was an error while getting container metrics, 0 otherwise
    				# TYPE resource_scrape_error gauge
    				resource_scrape_error 0
    			`,
    		},
    		{
    			name: "arbitrary container metrics for different container, pods and namespaces",
    			summary: &statsapi.Summary{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  3. pkg/kubelet/container/testing/fake_runtime.go

    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	for _, c := range pod.Spec.Containers {
    		if c.Name == container.Name { // Container already in the pod.
    			return f.Err
    		}
    	}
    	pod.Spec.Containers = append(pod.Spec.Containers, container)
    	return f.Err
    }
    
    func (f *FakeRuntime) KillContainerInPod(container v1.Container, pod *v1.Pod) error {
    	f.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. cluster/gce/gci/configure.sh

      systemctl stop containerd
      mkdir -p /home/containerd/
      mount --bind /home/containerd /home/containerd
      mount -o remount,exec /home/containerd
      if [[ -n "${COS_INSTALL_CONTAINERD_VERSION:-}" ]]; then
        # containerd versions have slightly different url(s), so try both
        # shellcheck disable=SC2086
        ( curl ${CURL_FLAGS} \
            --location \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 04:14:02 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  5. plugin/pkg/admission/serviceaccount/admission_test.go

    	}
    	if len(pod.Spec.Containers[0].VolumeMounts) != 1 {
    		t.Fatalf("Expected 1 volume mount, got %d", len(pod.Spec.Containers[0].VolumeMounts))
    	}
    	if !reflect.DeepEqual(expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0]) {
    		t.Fatalf("Expected\n\t%#v\ngot\n\t%#v", expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0])
    	}
    
    	// check init containers
    	pod = &api.Pod{
    		Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/cri_stats_provider_windows.go

    		cs, err := p.makeWinContainerStats(criContainerStat, container, rootFsInfo, fsIDtoInfo, podSandbox.GetMetadata())
    		if err != nil {
    			return fmt.Errorf("make container stats: %w", err)
    
    		}
    		ps.Containers = append(ps.Containers, *cs)
    	}
    
    	return nil
    }
    
    func (p *criStatsProvider) makeWinContainerStats(
    	stats *runtimeapi.WindowsContainerStats,
    	container *runtimeapi.Container,
    	rootFsInfo *cadvisorapiv2.FsInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. pkg/kubelet/prober/prober_manager_test.go

    			UID: "no_probe_pod",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{{
    				Name: "no_probe1",
    			}, {
    				Name: "no_probe2",
    			}, {
    				Name: "no_probe3",
    			}},
    		},
    	}
    
    	probePod := v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			UID: "probe_pod",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{{
    				Name: "probe1",
    			}, {
    				Name:           "readiness",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/labels.go

    	labels[types.KubernetesContainerNameLabel] = container.Name
    
    	return labels
    }
    
    // newContainerAnnotations creates container annotations from v1.Container and v1.Pod.
    func newContainerAnnotations(container *v1.Container, pod *v1.Pod, restartCount int, opts *kubecontainer.RunContainerOptions) map[string]string {
    	annotations := map[string]string{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/manager_test.go

    	resourceClaimName := "test-pod-claim-1"
    
    	for _, test := range []struct {
    		description string
    		container   *v1.Container
    		pod         *v1.Pod
    		claimInfo   *ClaimInfo
    		wantErr     bool
    	}{
    		{
    			description: "claim info with annotations",
    			container: &v1.Container{
    				Name: "test-container",
    				Resources: v1.ResourceRequirements{
    					Claims: []v1.ResourceClaim{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/types_test.go

    		})
    	}
    }
    
    func TestNewNodeInfo(t *testing.T) {
    	nodeName := "test-node"
    	pods := []*v1.Pod{
    		st.MakePod().UID("test-1").Namespace("node_info_cache_test").Name("test-1").Node(nodeName).
    			Containers([]v1.Container{st.MakeContainer().ResourceRequests(map[v1.ResourceName]string{
    				v1.ResourceCPU:    "100m",
    				v1.ResourceMemory: "500",
    			}).ContainerPort([]v1.ContainerPort{{
    				HostIP:   "127.0.0.1",
    				HostPort: 80,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
Back to top