Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for StatusManager (0.34 sec)

  1. pilot/pkg/bootstrap/configcontroller.go

    					s.kubeClient, args.Revision, args.Namespace, s.statusManager, args.RegistryOptions.KubeOptions.DomainSuffix)
    				if err != nil {
    					return
    				}
    				cont.Run(leaderStop)
    			}).Run(stop)
    		return nil
    	})
    	return nil
    }
    
    func (s *Server) initStatusController(args *PilotArgs, writeStatus bool) {
    	if s.statusManager == nil && writeStatus {
    		s.initStatusManager(args)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/config/analysis/incluster/controller.go

    	analyzer  *local.IstiodAnalyzer
    	statusctl *status.Controller
    }
    
    func NewController(stop <-chan struct{}, rwConfigStore model.ConfigStoreController,
    	kubeClient kube.Client, revision, namespace string, statusManager *status.Manager, domainSuffix string,
    ) (*Controller, error) {
    	analyzer := analyzers.AllCombined()
    	all := kuberesource.ConvertInputsToSchemas(analyzer.Metadata().Inputs)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    	// which pods are running.
    	volumeManager volumemanager.VolumeManager
    
    	// statusManager receives updated pod status updates from the podWorker and updates the API
    	// status of those pods to match. The statusManager is authoritative for the synthesized
    	// status of the pod from the kubelet's perspective (other components own the individual
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/controller.go

    	default:
    		return nil
    	}
    }
    
    func (c *Controller) SetStatusWrite(enabled bool, statusManager *status.Manager) {
    	if enabled && features.EnableGatewayAPIStatus && statusManager != nil {
    		c.statusController.Store(
    			statusManager.CreateGenericController(func(status any, context any) status.GenerationProvider {
    				return &gatewayGeneration{context}
    			}),
    		)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    	kl.HandlePodAdditions(pods)
    	if _, found := kl.statusManager.GetPodStatus(podToTest.UID); !found {
    		t.Fatalf("expected to have status cached for pod2")
    	}
    	// Sync with empty pods so that the entry in status map will be removed.
    	kl.podManager.SetPods([]*v1.Pod{})
    	kl.HandlePodCleanups(ctx)
    	if _, found := kl.statusManager.GetPodStatus(podToTest.UID); found {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. pkg/kubelet/prober/prober_manager_test.go

    }
    
    func (m *manager) extractedReadinessHandling() {
    	update := <-m.readinessManager.Updates()
    	// This code corresponds to an extract from kubelet.syncLoopIteration()
    	ready := update.Result == results.Success
    	m.statusManager.SetContainerReadiness(update.PodUID, update.ContainerID, ready)
    }
    
    func TestUpdateReadiness(t *testing.T) {
    	testPod := getTestPod()
    	setTestProbe(testPod, readiness, v1.Probe{})
    	m := newTestManager()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  7. pkg/kubelet/runonce_test.go

    		rootDirectory:    filepath.Clean(basePath),
    		podLogsDirectory: filepath.Join(basePath, "pod-logs"),
    		recorder:         &record.FakeRecorder{},
    		cadvisor:         cadvisor,
    		nodeLister:       testNodeLister{},
    		statusManager:    status.NewManager(nil, podManager, &statustest.FakePodDeletionSafetyProvider{}, podStartupLatencyTracker, basePath),
    		mirrorPodClient:  podtest.NewFakeMirrorClient(),
    		podManager:       podManager,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    				break
    			}
    		}
    	}
    	if !specStatusDiffer {
    		// Clear last resize state from checkpoint
    		if err := kl.statusManager.SetPodResizeStatus(pod.UID, ""); err != nil {
    			klog.ErrorS(err, "SetPodResizeStatus failed", "pod", pod.Name)
    		}
    	} else {
    		if resizeStatus, found := kl.statusManager.GetPodResizeStatus(string(pod.UID)); found {
    			podResizeStatus = resizeStatus
    		}
    	}
    	return podResizeStatus
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  9. pilot/pkg/bootstrap/server.go

    }
    
    func (s *Server) initStatusManager(_ *PilotArgs) {
    	s.addStartFunc("status manager", func(stop <-chan struct{}) error {
    		s.statusManager = status.NewManager(s.RWConfigStore)
    		s.statusManager.Start(stop)
    		return nil
    	})
    }
    
    func (s *Server) serveHTTP() error {
    	// At this point we are ready - start Http Listener so that it can respond to readiness events.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_getters.go

    	// a kubelet running without apiserver requires an additional
    	// update of the static pod status. See #57106
    	for i, p := range pods {
    		if kubelettypes.IsStaticPod(p) {
    			if status, ok := kl.statusManager.GetPodStatus(p.UID); ok {
    				klog.V(2).InfoS("Pod status updated", "pod", klog.KObj(p), "status", status.Phase)
    				// do not mutate the cache
    				p = p.DeepCopy()
    				p.Status = status
    				pods[i] = p
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top