Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 221 for BackOff (0.12 sec)

  1. 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)
  2. 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)
  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/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)
  5. pkg/scheduler/internal/queue/scheduling_queue.go

    //     activeQ when their backoff periods complete.
    //   - unschedulablePods holds pods that were already attempted for scheduling and
    //     are currently determined to be unschedulable.
    type PriorityQueue struct {
    	*nominator
    
    	stop  chan struct{}
    	clock clock.Clock
    
    	// pod initial backoff duration.
    	podInitialBackoffDuration time.Duration
    	// pod maximum backoff duration.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K 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/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)
  8. releasenotes/notes/30261.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: security
    issue:
    - 30261
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 02 17:51:47 UTC 2021
    - 216 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