Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 110 for Petry (0.04 sec)

  1. pkg/test/echo/server/endpoint/tcp.go

    func (s *tcpInstance) awaitReady(onReady OnReadyFunc, address string) {
    	defer onReady()
    
    	err := retry.UntilSuccess(func() error {
    		conn, err := net.Dial("tcp", address)
    		if err != nil {
    			return err
    		}
    		defer func() { _ = conn.Close() }()
    
    		// Server is up now, we're ready.
    		return nil
    	}, retry.Timeout(readyTimeout), retry.Delay(readyInterval))
    
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. tests/integration/pilot/webhook_test.go

    	"k8s.io/client-go/kubernetes"
    
    	"istio.io/api/label"
    	networking "istio.io/api/networking/v1alpha3"
    	"istio.io/client-go/pkg/apis/networking/v1alpha3"
    	"istio.io/istio/pkg/test/framework"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func TestWebhook(t *testing.T) {
    	// nolint: staticcheck
    	framework.NewTest(t).
    		RequiresSingleCluster().
    		Run(func(t framework.TestContext) {
    			vwcName := "istio-validator"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 01 13:31:34 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. tests/util/leak/check.go

    	runtime.SetFinalizer(i, func(x any) {
    		collected.Store(true)
    	})
    	tb.Cleanup(func() {
    		retry.UntilOrFail(tb, func() bool {
    			// Trigger GC explicitly, otherwise we may need to wait a long time for it to run
    			runtime.GC()
    			return collected.Load()
    		}, retry.Timeout(time.Second*5), retry.Message("object was not garbage collected"))
    	})
    }
    
    type goroutine struct {
    	id    uint64
    	stack string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 10:22:38 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. pkg/test/echo/server/endpoint/grpc.go

    		}
    		_, err = s.f.ForwardEcho(context.Background(), &forwarder.Config{
    			XDSTestBootstrap: s.Port.XDSTestBootstrap,
    			Request:          req,
    		})
    		return err
    	}, retry.Timeout(readyTimeout), retry.Delay(readyInterval))
    	if err != nil {
    		epLog.Errorf("readiness failed for GRPC endpoint %s: %v", listener.Addr().String(), err)
    	} else {
    		epLog.Infof("ready for GRPC endpoint %s", listener.Addr().String())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 25 17:30:37 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/kube/workload_manager.go

    	err = retry.UntilSuccess(func() error {
    		m.mutex.Lock()
    		out, err = m.readyWorkloads()
    		if err == nil && len(out) != len(m.workloads) {
    			err = fmt.Errorf("failed waiting for workloads for echo %s/%s to be ready",
    				m.cfg.Namespace.Name(),
    				m.cfg.Service)
    		}
    		m.mutex.Unlock()
    		return err
    	}, retry.Timeout(m.cfg.ReadinessTimeout), startDelay)
    	return
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. pilot/pkg/config/monitor/monitor_test.go

    	"istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/schema/collection"
    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    var createConfigSet = []*config.Config{
    	{
    		Meta: config.Meta{
    			Name:             "magic",
    			GroupVersionKind: gvk.Gateway,
    		},
    		Spec: &networking.Gateway{
    			Servers: []*networking.Server{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. pkg/kube/controllers/example_test.go

    	})
    	// There is no guarantee that test2 would be processed before the controller exits, so wait for events insert
    	_ = retry.Until(func() bool {
    		return controller.events.Load() == 2
    	})
    	// In a typical test, using helpers like assert.EventuallyEqual or retry.UntilSuccessOrFail are preferred
    	// assert.EventuallyEqual(t, controller.events.Load, 2)
    
    	// Output:
    	// pod has IP 127.0.0.1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/testdata/routes/k8s-gateway-http-route-path-prefix/configdump.json

                "retry_host_predicate": [
                 {
                  "name": "envoy.retry_host_predicates.previous_hosts",
                  "typed_config": {
                   "@type": "type.googleapis.com/envoy.extensions.retry.host.previous_hosts.v3.PreviousHostsPredicate"
                  }
                 }
                ],
                "host_selection_retry_max_attempts": "5",
                "retriable_status_codes": [
                 503
                ]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    	kubelib "istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const systemNS = "istio-system"
    
    var cniPodLabels = map[string]string{
    	"k8s-app":    "istio-cni-node",
    	"some-other": "label",
    }
    
    type nodeTainterTestServer struct {
    	client kubelib.Client
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pkg/queue/delay.go

    				if err := t.do(); err != nil {
    					if t.retries < maxTaskRetry {
    						t.retries++
    						log.Warnf("Work item handle failed: %v %d times, retry it", err, t.retries)
    						d.pushInternal(t)
    						continue
    					}
    					log.Errorf("Work item handle failed: %v, reaching the maximum retry times: %d, drop it", err, maxTaskRetry)
    				}
    			case <-stop:
    				return
    			}
    		}
    	}()
    	return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top