Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 223 for container_1 (0.14 sec)

  1. pkg/kubelet/kuberuntime/security_context_windows_test.go

    			fail:     false,
    		},
    		{
    			desc: "Fail if container's RunAsUser is root and RunAsNonRoot is true",
    			sc: &v1.SecurityContext{
    				RunAsNonRoot: &runAsNonRootTrue,
    				WindowsOptions: &v1.WindowsSecurityContextOptions{
    					RunAsUserName: &rootUser,
    				},
    			},
    			username: rootUser,
    			fail:     true,
    		},
    		{
    			desc: "Fail if container's RunAsUser is root (case-insensitive) and RunAsNonRoot is true",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 02:29:11 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cri_stats_provider_test.go

    		sandbox0, sandbox1, sandbox2, sandbox3, sandbox4, sandbox5, sandbox6,
    	})
    	fakeRuntimeService.SetFakeContainers([]*critest.FakeContainer{
    		container0, container1, container2, container3, container4, container5, container6, container7, container8, container9,
    	})
    	fakeRuntimeService.SetFakeContainerStats([]*runtimeapi.ContainerStats{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    		fakeOS.Removes)
    	// Verify container is removed
    	assert.Contains(t, fakeRuntime.Called, "RemoveContainer")
    	containers, err := fakeRuntime.ListContainers(ctx, &runtimeapi.ContainerFilter{Id: containerID})
    	assert.NoError(t, err)
    	assert.Empty(t, containers)
    }
    
    // TestKillContainer tests killing the container in a Pod.
    func TestKillContainer(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. pkg/kubelet/prober/prober_test.go

    			Stdout: test.stdout,
    			Err:    test.err,
    		}
    		prober := &prober{
    			runner: runner,
    		}
    
    		container := v1.Container{}
    		containerID := kubecontainer.ContainerID{Type: "docker", ID: "containerID"}
    		cmd := []string{"/foo", "bar"}
    		exec := prober.newExecInContainer(ctx, container, containerID, cmd, 0)
    
    		var dataBuffer bytes.Buffer
    		writer := ioutils.LimitWriter(&dataBuffer, int64(limit))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_volumes_test.go

    	defer testKubelet.Cleanup()
    	kubelet := testKubelet.kubelet
    
    	pod := podWithUIDNameNsSpec("12345678", "foo", "test", v1.PodSpec{
    		Containers: []v1.Container{
    			{
    				Name: "container1",
    				VolumeMounts: []v1.VolumeMount{
    					{
    						Name:      "vol1",
    						MountPath: "/mnt/vol1",
    					},
    					{
    						Name:      "vol2",
    						MountPath: "/mnt/vol2",
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  6. pkg/volume/util/subpath/subpath_linux_test.go

    				if err := validateDirNotExists(filepath.Join(path, "container1")); err != nil {
    					return err
    				}
    				return validateFileExists(filepath.Join(path, "container2"))
    			},
    			expectError: true,
    		},
    		{
    			name: "subpath-mount",
    			prepare: func(base string) ([]mount.MountPoint, error) {
    				path := filepath.Join(base, containerSubPathDirectoryName, testVol, "container1", "0")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  7. pkg/kubelet/status/status_manager.go

    // state, which is the set of containers that have attempted to start at least once. If all containers
    // are Waiting, the first container is always returned.
    func initializedContainers(containers []v1.ContainerStatus) []v1.ContainerStatus {
    	for i := len(containers) - 1; i >= 0; i-- {
    		if containers[i].State.Waiting == nil || containers[i].LastTerminationState.Terminated != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/api/types.go

    	// SignalContainerFsAvailable is amount of storage available on filesystem that container runtime uses for container writable layers.
    	// In case of a single filesystem, containerfs=nodefs.
    	// In case of a image filesystem, containerfs=imagefs.
    	// We will override user settings and set to either imagefs or nodefs depending on configuration.
    	SignalContainerFsInodesFree Signal = "containerfs.inodesFree"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. 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)
  10. pkg/kubelet/prober/results/results_manager_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/wait"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    )
    
    func TestCacheOperations(t *testing.T) {
    	m := NewManager()
    
    	unsetID := kubecontainer.ContainerID{Type: "test", ID: "unset"}
    	setID := kubecontainer.ContainerID{Type: "test", ID: "set"}
    
    	_, found := m.Get(unsetID)
    	assert.False(t, found, "unset result found")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 02 10:55:41 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top