Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for runOnce (0.35 sec)

  1. 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)
  2. pkg/kubelet/runonce_test.go

    	// because runonce is never used in kubernetes now, we should deprioritize the cleanup work.
    	// TODO(random-liu) Fix the test, make it meaningful.
    	fakeRuntime.PodStatus = kubecontainer.PodStatus{
    		ContainerStatuses: []*kubecontainer.Status{
    			{
    				Name:  "bar",
    				State: kubecontainer.ContainerStateRunning,
    			},
    		},
    	}
    	results, err := kb.runOnce(ctx, pods, time.Millisecond)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_serving_content.go

    	klog.V(2).InfoS("Loaded a new cert/key pair", "name", c.Name())
    
    	for _, listener := range c.listeners {
    		listener.Enqueue()
    	}
    
    	return nil
    }
    
    // RunOnce runs a single sync loop
    func (c *DynamicCertKeyPairContent) RunOnce(ctx context.Context) error {
    	return c.loadCertKeyPair()
    }
    
    // Run starts the controller and blocks until context is killed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    	if !ok {
    		return true
    	}
    	if !bytes.Equal(existing.caBundle, caBundle) {
    		return true
    	}
    
    	return false
    }
    
    // RunOnce runs a single sync loop
    func (c *ConfigMapCAController) RunOnce(ctx context.Context) error {
    	// Ignore the error when running once because when using a dynamically loaded ca file, because we think it's better to have nothing for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

        tcpConnectsInFlight += plan
        val taskName = "$okHttpName connect ${routePlanner.address.url.redact()}"
        taskRunner.newQueue().schedule(
          object : Task(taskName) {
            override fun runOnce(): Long {
              val connectResult =
                try {
                  plan.connectTcp()
                } catch (e: Throwable) {
                  ConnectResult(plan, throwable = e)
                }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      private val cleanupTask =
        object : Task("$okHttpName ConnectionPool connection closer") {
          override fun runOnce(): Long = closeConnections(System.nanoTime())
        }
    
      private fun AddressState.scheduleOpener() {
        queue.schedule(
          object : Task("$okHttpName ConnectionPool connection opener") {
            override fun runOnce(): Long = openConnections(this@scheduleOpener)
          },
        )
      }
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top