Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 62 for responses (0.18 sec)

  1. pkg/adsc/delta_test.go

    		for _, response := range item.serverResponses {
    			expected[response.TypeUrl] = response
    		}
    		tc := testCase{
    			desc:     desc.desc,
    			inClient: NewDeltaWithBackoffPolicy("", &DeltaADSConfig{}, nil),
    			deltaHandler: func(delta discovery.AggregatedDiscoveryService_DeltaAggregatedResourcesServer) error {
    				for _, response := range desc.serverResponses {
    					_ = delta.Send(response)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 09:32:41 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/adsc/delta.go

    				time.AfterFunc(c.cfg.BackoffPolicy.NextBackOff(), c.reconnect)
    			} else {
    				c.Close()
    			}
    			return
    		}
    		deltaLog.Infof("Received response: %s", msg.TypeUrl)
    		if err := c.handleDeltaResponse(msg); err != nil {
    			deltaLog.Infof("Handle response %s failed: %v", msg.TypeUrl, err)
    			c.Close()
    			return
    		}
    		c.mutex.Lock()
    		c.lastReceived[msg.TypeUrl] = msg
    		c.mutex.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 09:32:41 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. pkg/xds/server.go

    	// NonceSent is the nonce sent in the last sent response. If it is equal with NonceAcked, the
    	// last message has been processed. If empty: we never sent a message of this type.
    	NonceSent string
    
    	// NonceAcked is the last acked message.
    	NonceAcked string
    
    	// AlwaysRespond, if true, will ensure that even when a request would otherwise be treated as an
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    				Version:   version,
    				Resource:  resource,
    			},
    		},
    	}
    
    	response, err := c.Kube().AuthorizationV1().SelfSubjectAccessReviews().Create(context.Background(), s, metav1.CreateOptions{})
    	if err != nil {
    		return err
    	}
    
    	if !response.Status.Allowed {
    		if len(response.Status.Reason) > 0 {
    			return errors.New(response.Status.Reason)
    		}
    		return errors.New("permission denied")
    	}
    	return nil
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 02:57:30 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. pilot/pkg/model/endpointshards.go

    		pushType = FullPush
    	}
    
    	// Clear the cache here. While it would likely be cleared later when we trigger a push, a race
    	// condition is introduced where an XDS response may be generated before the update, but not
    	// completed until after a response after the update. Essentially, we transition from v0 -> v1 ->
    	// v0 -> invalidate -> v1. Reverting a change we pushed violates our contract of monotonically
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. pkg/spiffe/spiffe.go

    		retryBackoffTime := firstRetryBackOffTime
    		startTime := time.Now()
    		var resp *http.Response
    		for {
    			resp, err = httpClient.Get(endpoint)
    			var errMsg string
    			if err != nil {
    				errMsg = fmt.Sprintf("Calling %s failed with error: %v", endpoint, err)
    			} else if resp == nil {
    				errMsg = fmt.Sprintf("Calling %s failed with nil response", endpoint)
    			} else if resp.StatusCode != http.StatusOK {
    				b := make([]byte, 1024)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. pilot/pkg/trustbundle/trustbundle_test.go

    }
    
    func TestAddMeshConfigUpdate(t *testing.T) {
    	caCertPool, err := x509.SystemCertPool()
    	if err != nil {
    		t.Fatalf("failed to get SystemCertPool: %v", err)
    	}
    	stop := test.NewStop(t)
    
    	// Mock response from TLS Spiffe Server
    	validHandler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		w.WriteHeader(http.StatusOK)
    		_, _ = w.Write([]byte(validSpiffeX509Bundle))
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. pilot/pkg/xds/eds_sh_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run("from "+tt.network, func(t *testing.T) {
    			verifySplitHorizonResponse(t, s, tt.network, tt.sidecarID, tt.want)
    		})
    	}
    }
    
    // Tests whether an EDS response from the provided network matches the expected results
    func verifySplitHorizonResponse(t *testing.T, s *xds.FakeDiscoveryServer, network string, sidecarID string, expected expectedResults) {
    	t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. operator/cmd/mesh/uninstall.go

    	proxyinfo "istio.io/istio/pkg/proxy"
    )
    
    type uninstallArgs struct {
    	// skipConfirmation determines whether the user is prompted for confirmation.
    	// If set to true, the user is not prompted and a Yes response is assumed in all cases.
    	skipConfirmation bool
    	// force proceeds even if there are validation errors
    	force bool
    	// purge results in deletion of all Istio resources.
    	purge bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. pilot/pkg/xds/sds_test.go

    			proxy:     &model.Proxy{VerifiedIdentity: &spiffe.Identity{Namespace: "istio-system"}, Type: model.Router},
    			resources: []string{"kubernetes://generic"},
    			request:   &model.PushRequest{Full: true},
    			// Should get a response, but it will be empty
    			expect: map[string]Expected{},
    			accessReviewResponse: func(action k8stesting.Action) (bool, runtime.Object, error) {
    				return true, nil, errors.New("not authorized")
    			},
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top