- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 59 for pidStatus (0.17 sec)
-
pkg/kubelet/status/fake_status_manager.go
} func (m *fakeManager) Start() { klog.InfoS("Start()") return } func (m *fakeManager) GetPodStatus(uid types.UID) (v1.PodStatus, bool) { klog.InfoS("GetPodStatus()") return v1.PodStatus{}, false } func (m *fakeManager) SetPodStatus(pod *v1.Pod, status v1.PodStatus) { klog.InfoS("SetPodStatus()") return }
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/kube/krt/index_test.go
}) } SimplePods.Register(TrackerHandler[SimplePod](tt)) pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "name", Namespace: "namespace", }, Status: corev1.PodStatus{PodIP: "1.2.3.4"}, } pc.CreateOrUpdateStatus(pod) tt.WaitUnordered("add/namespace/name") assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}}) pod.Status.PodIP = "1.2.3.5"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/kubelet/container/cache_test.go
} func getTestPodIDAndStatus(numContainers int) (types.UID, *PodStatus) { id := types.UID(strconv.FormatInt(time.Now().UnixNano(), 10)) name := fmt.Sprintf("cache-foo-%s", string(id)) namespace := "ns" var status *PodStatus if numContainers > 0 { status = &PodStatus{ID: id, Name: name, Namespace: namespace} } else { status = &PodStatus{ID: id} } for i := 0; i < numContainers; i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 24 20:23:12 UTC 2020 - 6K bytes - Viewed (0) -
pkg/kubelet/pod_container_deletor_test.go
package kubelet import ( "reflect" "testing" "time" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" ) func TestGetContainersToDeleteInPodWithFilter(t *testing.T) { pod := kubecontainer.PodStatus{ ContainerStatuses: []*kubecontainer.Status{ { ID: kubecontainer.ContainerID{Type: "test", ID: "1"}, Name: "foo", CreatedAt: time.Now(), State: kubecontainer.ContainerStateExited,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 19 15:48:08 UTC 2020 - 5.8K bytes - Viewed (0) -
cni/pkg/util/podutil_test.go
pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "test", }, Spec: corev1.PodSpec{ NodeName: "derp", }, Status: corev1.PodStatus{ PodIP: "11.1.1.12", }, } podIPs := GetPodIPsIfPresent(pod) assert.Equal(t, len(podIPs), 1) } func TestGetPodIPsIfPodIPPresent(t *testing.T) { pod := &corev1.Pod{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 03 19:29:42 UTC 2024 - 4.9K bytes - Viewed (0) -
pkg/kube/krt/join_test.go
ObjectMeta: metav1.ObjectMeta{ Name: "svc", Namespace: "namespace", }, Spec: corev1.ServiceSpec{Selector: map[string]string{"app": "foo"}}, } sc.Create(svc) pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"} pc.UpdateStatus(pod) assert.EventuallyEqual(t, fetch, []SimpleEndpoint{ {pod.Name, svc.Name, pod.Namespace, "1.2.3.4"}, {"name-static", svc.Name, pod.Namespace, "9.9.9.9"}, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/types.go
Spec PodSpec // Status represents the current information about a pod. This data may not be up // to date. // +optional Status PodStatus } // PodStatus represents information about the status of a pod. Status may trail the actual // state of a system. type PodStatus struct { // +optional Phase PodPhase // +optional Conditions []PodCondition
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 03 06:34:52 UTC 2019 - 5.1K bytes - Viewed (0) -
pkg/util/pod/pod.go
// PatchPodStatus patches pod status. It returns true and avoids an update if the patch contains no changes. func PatchPodStatus(ctx context.Context, c clientset.Interface, namespace, name string, uid types.UID, oldPodStatus, newPodStatus v1.PodStatus) (*v1.Pod, []byte, bool, error) { patchBytes, unchanged, err := preparePatchBytesForPodStatus(namespace, name, uid, oldPodStatus, newPodStatus) if err != nil { return nil, nil, false, err } if unchanged {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 15:22:29 UTC 2022 - 3K bytes - Viewed (0) -
pkg/apis/core/v1/helper/qos/qos.go
func isSupportedQoSComputeResource(name v1.ResourceName) bool { return supportedQoSComputeResources.Has(string(name)) } // GetPodQOS returns the QoS class of a pod persisted in the PodStatus.QOSClass field. // If PodStatus.QOSClass is empty, it returns value of ComputePodQOS() which evaluates pod's QoS class. func GetPodQOS(pod *v1.Pod) v1.PodQOSClass { if pod.Status.QOSClass != "" { return pod.Status.QOSClass }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.5K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "pod-bingo", Namespace: "funkyns", }, Spec: corev1.PodSpec{ NodeName: NodeName, }, Status: corev1.PodStatus{ PodIP: fakePodIP, }, } ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}} client := kube.NewFakeClient(ns, pod) // We are expecting at most 1 calls to the mock, wait for them
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 21:31:35 UTC 2024 - 7.6K bytes - Viewed (0)