- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 208 for podStates (0.22 sec)
-
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
return rt.err } type mockPodStatusProvider struct { podStatus v1.PodStatus found bool } func (psp mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) { return psp.podStatus, psp.found } func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod { pod := &v1.Pod{ Spec: v1.PodSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.pb.go
} var xxx_messageInfo_PodSpec proto.InternalMessageInfo func (m *PodStatus) Reset() { *m = PodStatus{} } func (*PodStatus) ProtoMessage() {} func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptor_c0604dbfc428ecfb, []int{4} } func (m *PodStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PodStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 56.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
} // convertStatusToAPIStatus initialize an api PodStatus for the given pod from // the given internal pod status and the previous state of the pod from the API. // It is purely transformative and does not alter the kubelet state at all. func (kl *Kubelet) convertStatusToAPIStatus(pod *v1.Pod, podStatus *kubecontainer.PodStatus, oldPodStatus v1.PodStatus) *v1.PodStatus { var apiPodStatus v1.PodStatus
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0) -
pkg/scheduler/util/utils_test.go
return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: name, }, Spec: v1.PodSpec{ Priority: &priority, }, Status: v1.PodStatus{ StartTime: &metav1.Time{Time: startTime}, }, } } func TestGetEarliestPodStartTime(t *testing.T) { var priority int32 = 1 currentTime := time.Now() tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 14.5K 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) -
pkg/api/pod/util_test.go
podWithHostIPs := func() *api.PodStatus { return &api.PodStatus{ HostIPs: makeHostIPs("10.0.0.1", "fd00:10::1"), } } podWithoutHostIPs := func() *api.PodStatus { return &api.PodStatus{ HostIPs: nil, } } tests := []struct { name string podStatus *api.PodStatus oldPodStatus *api.PodStatus wantPodStatus *api.PodStatus }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0) -
pkg/kubelet/server/stats/testing/mock_stats_provider.go
} // ListPodCPUAndMemoryStats mocks base method. func (m *MockProvider) ListPodCPUAndMemoryStats(ctx context.Context) ([]v1alpha1.PodStats, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListPodCPUAndMemoryStats", ctx) ret0, _ := ret[0].([]v1alpha1.PodStats) ret1, _ := ret[1].(error) return ret0, ret1 } // ListPodCPUAndMemoryStats indicates an expected call of ListPodCPUAndMemoryStats.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 11.8K 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)