Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 178 for container1 (0.18 sec)

  1. pkg/printers/internalversion/printers_test.go

    								Name:  "fake-container1",
    								Image: "fake-image1",
    							},
    							{
    								Name:  "fake-container2",
    								Image: "fake-image2",
    							},
    						},
    					},
    				},
    			},
    
    			options: printers.GenerateOptions{},
    			// Columns: Name, Containers, Images, Pod Labels
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/volume_manager_test.go

    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "abc",
    			Namespace: "nsA",
    			UID:       "1234",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Name: "container1",
    					VolumeMounts: []v1.VolumeMount{
    						{
    							Name:      volumetest.FailMountDeviceVolumeName,
    							MountPath: "/vol1",
    						},
    						{
    							Name:      "vol2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods_test.go

    		InitContainers: []v1.Container{
    			{Name: "containerX"},
    		},
    		Containers: []v1.Container{
    			{Name: "containerA"},
    			{Name: "containerB"},
    		},
    		RestartPolicy: v1.RestartPolicyAlways,
    	}
    
    	tests := []struct {
    		pod    *v1.Pod
    		status v1.PodPhase
    		test   string
    	}{
    		{&v1.Pod{Spec: desiredState, Status: v1.PodStatus{}}, v1.PodPending, "empty, waiting"},
    		{
    			&v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers.go

    			return false
    		}
    	}
    	return true
    }
    
    // HashContainer returns the hash of the container. It is used to compare
    // the running container with its desired spec.
    // Note: remember to update hashValues in container_hash_test.go as well.
    func HashContainer(container *v1.Container) uint64 {
    	hash := fnv.New32a()
    	containerJSON, _ := json.Marshal(pickFieldsToHash(container))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. pkg/kubelet/container/runtime.go

    // ContainerReasonStatusUnknown indicates a container the status of the container cannot be determined.
    const ContainerReasonStatusUnknown string = "ContainerStatusUnknown"
    
    // Container provides the runtime information for a container, such as ID, hash,
    // state of the container.
    type Container struct {
    	// The ID of the container, used by the container runtime to identify
    	// a container.
    	ID ContainerID
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods.go

    	// TODO: Consolidate the logic here with kuberuntime.GetContainerLogs, here we convert container name to containerID,
    	// but inside kuberuntime we convert container id back to container name and restart count.
    	// TODO: After separate container log lifecycle management, we should get log based on the existing log files
    	// instead of container status.
    	containerID, err := kl.validateContainerLogStatus(pod.Name, &podStatus, containerName, logOptions.Previous)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin.go

    	Kubernetes      Kubernetes `json:"kubernetes"`
    }
    
    // K8sArgs is the valid CNI_ARGS used for Kubernetes
    // The field names need to match exact keys in containerd args for unmarshalling
    // https://github.com/containerd/containerd/blob/ced9b18c231a28990617bc0a4b8ce2e81ee2ffa1/pkg/cri/server/sandbox_run.go#L526-L532
    type K8sArgs struct {
    	types.CommonArgs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    				continue
    			}
    		}
    		if err := cgc.manager.removeContainer(ctx, containers[i].id); err != nil {
    			klog.ErrorS(err, "Failed to remove container", "containerID", containers[i].id)
    		}
    	}
    
    	// Assume we removed the containers so that we're not too aggressive.
    	return containers[:numToKeep]
    }
    
    // removeOldestNSandboxes removes the oldest inactive toRemove sandboxes and
    // returns the resulting slice.
    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/controller/job/job_controller_test.go

    	}
    	for _, c := range spec.InitContainers {
    		if diff := cmp.Diff(want, c.Env); diff != "" {
    			t.Errorf("Unexpected Env in container %s (-want,+got):\n%s", c.Name, diff)
    		}
    	}
    	for _, c := range spec.Containers {
    		if diff := cmp.Diff(want, c.Env); diff != "" {
    			t.Errorf("Unexpected Env in container %s (-want,+got):\n%s", c.Name, diff)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  10. pkg/kubelet/pleg/generic.go

    }
    
    func getContainersFromPods(pods ...*kubecontainer.Pod) []*kubecontainer.Container {
    	cidSet := sets.New[string]()
    	var containers []*kubecontainer.Container
    	fillCidSet := func(cs []*kubecontainer.Container) {
    		for _, c := range cs {
    			cid := c.ID.ID
    			if cidSet.Has(cid) {
    				continue
    			}
    			cidSet.Insert(cid)
    			containers = append(containers, c)
    		}
    	}
    
    	for _, p := range pods {
    		if p == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top