Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 210 for container_0 (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/kubelet/cm/memorymanager/memory_manager.go

    func (m *manager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    	m.Lock()
    	defer m.Unlock()
    
    	m.containerMap.Add(string(pod.UID), container.Name, containerID)
    
    	// Since we know that each init container always runs to completion before
    	// the next container starts, we can safely remove references to any previously
    	// started init containers. This will free up the memory from these init containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 00:50:45 UTC 2023
    - 17.1K bytes
    - Viewed (1)
  7. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	assert.Equal(imageFsInfo.Timestamp, containerfs.Time.Time)
    	assert.Equal(imageFsInfo.Available, *containerfs.AvailableBytes)
    	assert.Equal(imageFsInfo.Capacity, *containerfs.CapacityBytes)
    	assert.Equal(imageFsInfo.InodesFree, containerfs.InodesFree)
    	assert.Equal(imageFsInfo.Inodes, containerfs.Inodes)
    	assert.Equal(*imageFsInfo.Inodes-*imageFsInfo.InodesFree, *containerfs.InodesUsed)
    
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    func makeGCContainer(podName, containerName string, attempt int, createdAt int64, state runtimeapi.ContainerState) containerTemplate {
    	container := makeTestContainer(containerName, "test-image")
    	pod := makeTestPod(podName, "test-ns", podName, []v1.Container{container})
    	return containerTemplate{
    		pod:       pod,
    		container: &container,
    		attempt:   attempt,
    		createdAt: createdAt,
    		state:     state,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. pkg/kube/inject/testdata/inject/multi-container.yaml.injected

          annotations:
            istio.io/rev: default
            kubectl.kubernetes.io/default-container: name1
            kubectl.kubernetes.io/default-logs-container: name1
            prometheus.io/path: /stats/prometheus
            prometheus.io/port: "15020"
            prometheus.io/scrape: "true"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. pkg/kube/inject/testdata/inject/only-proxy-container.yaml

      template:
        metadata:
          labels:
            istio: ingressgateway
        spec:
          # Ensure we can have istio-proxy as the only container. This isn't particularly useful as a sidecar
          # but will be used when we have a dedicated template to run a pod as a Gateway
          containers:
          - name: istio-proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 07 23:55:05 UTC 2020
    - 474 bytes
    - Viewed (0)
Back to top