Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 226 for Backoff (0.16 sec)

  1. pkg/kubelet/events/event.go

    	StartedContainer        = "Started"
    	FailedToCreateContainer = "Failed"
    	FailedToStartContainer  = "Failed"
    	KillingContainer        = "Killing"
    	PreemptContainer        = "Preempting"
    	BackOffStartContainer   = "BackOff"
    	ExceededGracePeriod     = "ExceededGracePeriod"
    )
    
    // Pod event reason list
    const (
    	FailedToKillPod                = "FailedKillPod"
    	FailedToCreatePodContainer     = "FailedCreatePodContainer"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook.go

    func retryOnError(err error) bool {
    	if err != nil {
    		return true
    	}
    	return false
    }
    
    func loadWebhook(configFile string, groupVersion schema.GroupVersion, retryBackoff wait.Backoff, customDial utilnet.DialFunc) (*webhook.GenericWebhook, error) {
    	clientConfig, err := webhook.LoadKubeconfig(configFile, customDial)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:13:31 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  3. pkg/backoff/exponential_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package backoff
    
    import (
    	"context"
    	"errors"
    	"sync"
    	"testing"
    	"time"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestBackOff(t *testing.T) {
    	var (
    		testInitialInterval = 500 * time.Millisecond
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 05 16:03:30 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    		TokenRequestTimeout: 10 * time.Second,
    	}
    }
    
    // WithCustomRetryBackoff sets the custom backoff parameters for the authentication webhook retry logic.
    func (s *DelegatingAuthenticationOptions) WithCustomRetryBackoff(backoff wait.Backoff) {
    	s.WebhookRetryBackoff = &backoff
    }
    
    // WithRequestTimeout sets the given timeout for requests made by the authentication webhook client.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory/delegating.go

    	TokenAccessReviewTimeout time.Duration
    
    	// WebhookRetryBackoff specifies the backoff parameters for the authentication webhook retry logic.
    	// This allows us to configure the sleep time at each iteration and the maximum number of retries allowed
    	// before we fail the webhook call in order to limit the fan out that ensues when the system is degraded.
    	WebhookRetryBackoff *wait.Backoff
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 29 07:49:14 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  6. pkg/util/goroutinemap/goroutinemap_test.go

    	return func() error { return nil }
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    4,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func waitChannelWithTimeout(ch <-chan interface{}, timeout time.Duration) error {
    	timer := time.NewTimer(timeout)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue_test.go

    				t.Errorf("pod %v is not in the backoff queue", podID)
    			}
    
    			// Check backoff duration.
    			deadline := q.getBackoffTime(podInfo)
    			backoff := deadline.Sub(timestamp)
    			if backoff != step.wantBackoff {
    				t.Errorf("got backoff %s, want %s", backoff, step.wantBackoff)
    			}
    
    			// Simulate routine that continuously flushes the backoff queue.
    			cl.Step(time.Millisecond)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  8. pkg/kubeapiserver/options/authorization_test.go

    	testCases := []struct {
    		name                 string
    		modes                []string
    		policyFile           string
    		webhookConfigFile    string
    		webhookRetryBackoff  *wait.Backoff
    		expectErr            bool
    		expectErrorSubString string
    	}{
    		{
    			name:                 "Unknown modes should return errors",
    			modes:                []string{"DoesNotExist"},
    			expectErr:            true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 06:28:47 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	}
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func TestPluginRegistration(t *testing.T) {
    	defer cleanup(t)
    
    	pluginManager := newTestPluginManager(socketDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. pkg/util/node/node.go

    // If required, it will wait for the node to be created.
    func GetNodeIP(client clientset.Interface, name string) net.IP {
    	var nodeIP net.IP
    	backoff := wait.Backoff{
    		Steps:    6,
    		Duration: 1 * time.Second,
    		Factor:   2.0,
    		Jitter:   0.2,
    	}
    
    	err := wait.ExponentialBackoff(backoff, func() (bool, error) {
    		node, err := client.CoreV1().Nodes().Get(context.TODO(), name, metav1.GetOptions{})
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 23:24:38 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top