- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 335 for containerId (0.38 sec)
-
pkg/kubelet/status/fake_status_manager.go
} func (m *fakeManager) SetPodAllocation(pod *v1.Pod) error { klog.InfoS("SetPodAllocation()") for _, container := range pod.Spec.Containers { var alloc v1.ResourceList if container.Resources.Requests != nil { alloc = container.Resources.Requests.DeepCopy() } m.state.SetContainerResourceAllocation(string(pod.UID), container.Name, alloc) } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 05:59:34 UTC 2023 - 2.7K bytes - Viewed (0) -
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) -
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) -
pkg/kubelet/kuberuntime/legacy.go
) // legacyLogSymlink composes the legacy container log path. It is only used for legacy cluster // logging support. func legacyLogSymlink(containerID string, containerName, podName, podNamespace string) string { return logSymlink(legacyContainerLogsDir, kubecontainer.BuildPodFullName(podName, podNamespace), containerName, containerID) } // getContainerIDFromLegacyLogSymlink returns error if container Id cannot be parsed
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 16:05:48 UTC 2022 - 2.7K bytes - Viewed (0) -
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) -
pkg/kubelet/kuberuntime/kuberuntime_logs.go
v1 "k8s.io/api/core/v1" "k8s.io/cri-client/pkg/logs" "k8s.io/klog/v2" ) // ReadLogs read the container log and redirect into stdout and stderr. // Note that containerID is only needed when following the log, or else // just pass in empty string "". func (m *kubeGenericRuntimeManager) ReadLogs(ctx context.Context, path, containerID string, apiOpts *v1.PodLogOptions, stdout, stderr io.Writer) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 1.2K bytes - Viewed (0) -
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 (0) -
pkg/kubelet/cm/topologymanager/fake_topology_manager_test.go
} } func TestFakeRemoveContainer(t *testing.T) { testCases := []struct { name string containerID string podUID string }{ { name: "Case1", containerID: "nginx", podUID: "0aafa4c4-38e8-11e9-bcb1-a4bf01040474", }, { name: "Case2", containerID: "Busy_Box", podUID: "b3ee37fc-39a5-11e9-bcb1-a4bf01040474", }, } fm := fakeManager{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 10 11:44:15 UTC 2021 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/containerstateterminated.go
Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` StartedAt *v1.Time `json:"startedAt,omitempty"` FinishedAt *v1.Time `json:"finishedAt,omitempty"` ContainerID *string `json:"containerID,omitempty"` } // ContainerStateTerminatedApplyConfiguration constructs an declarative configuration of the ContainerStateTerminated type for use with // apply.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 4.5K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns.go
var podUID types.UID var containerID string for _, cgroup := range cgroups { candidatePodUID, candidateContainerID, ok := getPodUIDAndContainerIDFromCGroupPath(cgroup.GroupPath) switch { case !ok: // Cgroup did not contain a container ID. continue case containerID == "": // This is the first container ID found so far. podUID = candidatePodUID
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 11K bytes - Viewed (0)