Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for syncFn (0.12 sec)

  1. pkg/kubelet/status/status_manager_test.go

    	}
    }
    
    func TestChangedStatus(t *testing.T) {
    	syncer := newTestManager(&fake.Clientset{})
    	testPod := getTestPod()
    	syncer.SetPodStatus(testPod, getRandomPodStatus())
    	verifyUpdates(t, syncer, 1)
    	syncer.SetPodStatus(testPod, getRandomPodStatus())
    	verifyUpdates(t, syncer, 1)
    }
    
    func TestChangedStatusKeepsStartTime(t *testing.T) {
    	syncer := newTestManager(&fake.Clientset{})
    	testPod := getTestPod()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  2. pkg/proxy/nftables/proxier.go

    	defer proxier.mu.Unlock()
    
    	// don't sync rules till we've received services and endpoints
    	if !proxier.isInitialized() {
    		proxier.logger.V(2).Info("Not syncing nftables until Services and Endpoints have been received from master")
    		return
    	}
    
    	//
    	// Below this point we will not return until we try to write the nftables rules.
    	//
    
    	// Keep track of how long syncs take.
    	start := time.Now()
    	defer func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller.go

    	syncHandler         func(ctx context.Context, jobKey string) error
    	// podStoreSynced returns true if the pod store has been synced at least once.
    	// Added as a member to the struct to allow injection for testing.
    	podStoreSynced cache.InformerSynced
    	// jobStoreSynced returns true if the job store has been synced at least once.
    	// Added as a member to the struct to allow injection for testing.
    	jobStoreSynced cache.InformerSynced
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  4. pkg/kubelet/pod_workers_test.go

    	}
    	if !podWorkers.CouldHaveRunningContainers(types.UID("abc")) {
    		t.Errorf("Expected pod to potentially have running containers (does not exist but not yet synced)")
    	}
    	if podWorkers.ShouldPodContentBeRemoved(types.UID("abc")) {
    		t.Errorf("Expected pod to not be suitable for removal (does not exist but not yet synced)")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller.go

    	// dsStoreSynced returns true if the daemonset store has been synced at least once.
    	// Added as a member to the struct to allow injection for testing.
    	dsStoreSynced cache.InformerSynced
    	// historyLister get list/get history from the shared informers's store
    	historyLister appslisters.ControllerRevisionLister
    	// historyStoreSynced returns true if the history store has been synced at least once.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  6. cmd/kube-controller-manager/app/options/options_test.go

    	"--concurrent-deployment-syncs=10",
    	"--concurrent-horizontal-pod-autoscaler-syncs=10",
    	"--concurrent-statefulset-syncs=15",
    	"--concurrent-endpoint-syncs=10",
    	"--concurrent-ephemeralvolume-syncs=10",
    	"--concurrent-service-endpoint-syncs=10",
    	"--concurrent-gc-syncs=30",
    	"--concurrent-namespace-syncs=20",
    	"--concurrent-job-syncs=10",
    	"--concurrent-cron-job-syncs=10",
    	"--concurrent-replicaset-syncs=10",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. pkg/proxy/iptables/proxier.go

    	defer proxier.mu.Unlock()
    
    	// don't sync rules till we've received services and endpoints
    	if !proxier.isInitialized() {
    		proxier.logger.V(2).Info("Not syncing iptables until Services and Endpoints have been received from master")
    		return
    	}
    
    	// The value of proxier.needFullSync may change before the defer funcs run, so
    	// we need to keep track of whether it was set at the *start* of the sync.
    	tryPartialSync := !proxier.needFullSync
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/proxier.go

    	serviceChanges   *proxy.ServiceChangeTracker
    
    	mu           sync.Mutex // protects the following fields
    	svcPortMap   proxy.ServicePortMap
    	endpointsMap proxy.EndpointsMap
    	nodeLabels   map[string]string
    	// initialSync is a bool indicating if the proxier is syncing for the first time.
    	// It is set to true when a new proxier is initialized and then set to false on all
    	// future syncs.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  9. pkg/controller/endpointslice/endpointslice_controller_test.go

    	err := esController.syncService(logger, fmt.Sprintf("%s/%s", namespace, missingServiceName))
    
    	// nil should be returned when the service doesn't exist
    	assert.Nil(t, err, "Expected no error syncing service")
    
    	// That should mean no client actions were performed
    	assert.Len(t, client.Actions(), 0)
    
    	// TriggerTimeTracker should have removed the reference to the missing service
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set_test.go

    		if store != nil {
    			store.Add(pod)
    		}
    		pods = append(pods, *pod)
    	}
    	return &v1.PodList{
    		Items: pods,
    	}
    }
    
    // processSync initiates a sync via processNextWorkItem() to test behavior that
    // depends on both functions (such as re-queueing on sync error).
    func processSync(ctx context.Context, rsc *ReplicaSetController, key string) error {
    	// Save old syncHandler and replace with one that captures the error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top