Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for runOnce (0.39 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    			}
    		}()
    		// start controllers if possible
    		if controller, ok := s.ClientCA.(dynamiccertificates.ControllerRunner); ok {
    			// runonce to try to prime data.  If this fails, it's ok because we fail closed.
    			// Files are required to be populated already, so this is for convenience.
    			if err := controller.RunOnce(ctx); err != nil {
    				klog.Warningf("Initial population of client CA failed: %v", err)
    			}
    
    			go controller.Run(ctx, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair_test.go

    		item: &api.RangeAllocation{Range: "192.168.1.0/24"},
    	}
    	_, cidr, _ := netutils.ParseCIDRSloppy(ipregistry.item.Range)
    	r := NewRepair(0, fakeClient.CoreV1(), fakeClient.EventsV1(), cidr, ipregistry, nil, nil)
    
    	if err := r.runOnce(); err != nil {
    		t.Fatal(err)
    	}
    	if !ipregistry.updateCalled || ipregistry.updated == nil || ipregistry.updated.Range != cidr.String() || ipregistry.updated != ipregistry.item {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. pkg/registry/core/service/portallocator/controller/repair_test.go

    		if err := r.runOnce(); err != nil {
    			t.Fatal(err)
    		}
    		after, err := portallocator.NewFromSnapshot(registry.updated)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !after.Has(111) {
    			t.Errorf("expected portallocator to still have leaked port")
    		}
    	}
    	// Run one more time to actually remove the leak.
    	if err := r.runOnce(); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

        val task =
          object : Task("task") {
            val schedules = mutableListOf(50.µs)
            val delays = mutableListOf(200.µs, -1)
    
            override fun runOnce(): Long {
              log += "run@${taskFaker.nanoTime}"
              if (schedules.isNotEmpty()) {
                redQueue.schedule(this, schedules.removeAt(0))
              }
              return delays.removeAt(0)
            }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. pkg/controlplane/apiserver/server.go

    			s.ClusterAuthenticationInfo.ClientCA.AddListener(controller)
    			if controller, ok := s.ClusterAuthenticationInfo.ClientCA.(dynamiccertificates.ControllerRunner); ok {
    				// runonce to be sure that we have a value.
    				if err := controller.RunOnce(ctx); err != nil {
    					runtime.HandleError(err)
    				}
    				go controller.Run(ctx, 1)
    			}
    		}
    		if s.ClusterAuthenticationInfo.RequestHeaderCA != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:24:41 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	c.currentlyServedContent = newContent // this is single threaded, so we have no locking issue
    
    	return nil
    }
    
    // RunOnce runs a single sync step to ensure that we have a valid starting configuration.
    func (c *DynamicServingCertificateController) RunOnce() error {
    	return c.syncCerts()
    }
    
    // Run starts the kube-apiserver and blocks until stopCh is closed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. pkg/registry/core/service/ipallocator/controller/repair.go

    	var once sync.Once
    	wait.Until(func() {
    		if err := c.runOnce(); err != nil {
    			runtime.HandleError(err)
    			return
    		}
    		once.Do(onFirstSuccess)
    	}, c.interval, stopCh)
    }
    
    // runOnce verifies the state of the cluster IP allocations and returns an error if an unrecoverable problem occurs.
    func (c *Repair) runOnce() error {
    	return retry.RetryOnConflict(retry.DefaultBackoff, func() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. pkg/registry/core/service/portallocator/controller/repair.go

    	defer c.broadcaster.Shutdown()
    
    	var once sync.Once
    	wait.Until(func() {
    		if err := c.runOnce(); err != nil {
    			runtime.HandleError(err)
    			return
    		}
    		once.Do(onFirstSuccess)
    	}, c.interval, stopCh)
    }
    
    // runOnce verifies the state of the port allocations and returns an error if an unrecoverable problem occurs.
    func (c *Repair) runOnce() error {
    	return retry.RetryOnConflict(retry.DefaultBackoff, func() error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller.go

    		return
    	}
    
    	// doesn't matter what workers say, only start one.
    	go wait.Until(c.runWorker, time.Second, ctx.Done())
    
    	<-ctx.Done()
    }
    
    // // RunOnce runs a single sync loop
    func (c *RequestHeaderAuthRequestController) RunOnce(ctx context.Context) error {
    	configMap, err := c.client.CoreV1().ConfigMaps(c.configmapNamespace).Get(ctx, c.configmapName, metav1.GetOptions{})
    	switch {
    	case errors.IsNotFound(err):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/loader.cc

    // session dies. With this Callable mechanism, that memory will be released
    // right after ReleaseCallable returns.
    //
    // However, the resource manager state remains.
    Status RunOnce(const RunOptions& run_options,
                   const std::vector<std::pair<string, Tensor>>& inputs,
                   const std::vector<string>& output_tensor_names,
                   const std::vector<string>& target_node_names,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top