- Sort Score
- Result 10 results
- Languages All
Results 51 - 59 of 59 for pidStatus (0.17 sec)
-
pkg/scheduler/util/utils.go
// and then submit a request to API server to patch the pod changes. func PatchPodStatus(ctx context.Context, cs kubernetes.Interface, old *v1.Pod, newStatus *v1.PodStatus) error { if newStatus == nil { return nil } oldData, err := json.Marshal(v1.Pod{Status: old.Status}) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 21 01:40:44 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/runonce.go
retry++ delay *= runOnceRetryDelayBackoff } return nil } // isPodRunning returns true if all containers of a manifest are running. func (kl *Kubelet) isPodRunning(pod *v1.Pod, status *kubecontainer.PodStatus) bool { for _, c := range pod.Spec.Containers { cs := status.FindContainerStatusByName(c.Name) if cs == nil || cs.State != kubecontainer.ContainerStateRunning {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/api/testing/applyconfiguration_test.go
// is because in this test we are simply doing json operations, in which // those disappear. func(s *api.PodSpec, c fuzz.Continue) { c.FuzzNoCustom(s) s.InitContainers = nil }, func(s *api.PodStatus, c fuzz.Continue) { c.FuzzNoCustom(s) s.InitContainerStatuses = nil }, // Apply configuration types do not have managed fields, so we exclude // them in our fuzz test cases.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.3K bytes - Viewed (0) -
pkg/kubelet/eviction/types.go
// gracePeriodOverride - the grace period override to use instead of what is on the pod spec type KillPodFunc func(pod *v1.Pod, isEvicted bool, gracePeriodOverride *int64, fn func(*v1.PodStatus)) error // MirrorPodFunc returns the mirror pod for the given static pod and // whether it was known to the pod manager. type MirrorPodFunc func(*v1.Pod) (*v1.Pod, bool)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 7.1K bytes - Viewed (0) -
pkg/volume/util/recyclerclient/recycler_client_test.go
} } func newPod(name string, phase v1.PodPhase, message string) *v1.Pod { return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Namespace: metav1.NamespaceDefault, Name: name, }, Status: v1.PodStatus{ Phase: phase, Message: message, }, } } func TestRecyclerPod(t *testing.T) { tests := []testcase{ { // Test recycler success with some events name: "RecyclerSuccess",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 31 14:16:53 UTC 2022 - 8.5K bytes - Viewed (0) -
pkg/kubelet/prober/scale_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 16:33:01 UTC 2023 - 8.2K bytes - Viewed (0) -
pilot/pkg/xds/cds_test.go
pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "pod", Namespace: "default", Labels: labels, }, Spec: v1.PodSpec{ServiceAccountName: "pod"}, Status: v1.PodStatus{ PodIP: "1.2.3.4", Phase: v1.PodPending, }, } service := &v1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: "example", Namespace: "default", }, Spec: v1.ServiceSpec{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 01 02:06:39 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/kubelet/lifecycle/handlers.go
containerManager podStatusProvider eventRecorder record.EventRecorder } type podStatusProvider interface { GetPodStatus(ctx context.Context, uid types.UID, name, namespace string) (*kubecontainer.PodStatus, error) } // NewHandlerRunner returns a configured lifecycle handler for a container.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 11:40:52 UTC 2024 - 8.2K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_test.go
id := ztunnelTestCounter.Add(1) pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: fmt.Sprintf("name-%d", id), UID: types.UID(fmt.Sprintf("uid-%d", id)), }, Spec: v1.PodSpec{}, Status: v1.PodStatus{}, } return pod, newFakeNs(devNull.Fd()) } func connect(ctx context.Context) struct { ztunClient *net.UnixConn ztunServer *ztunnelServer uid string } { pods := &fakePodCache{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 8.6K bytes - Viewed (0)