Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for case1 (0.1 sec)

  1. pilot/pkg/networking/core/listener_inbound.go

    		case istionetworking.ListenerProtocolHTTP:
    			chains = append(chains, &listener.FilterChain{
    				FilterChainMatch: cc.ToFilterChainMatch(opt),
    				Filters:          lb.buildInboundNetworkFiltersForHTTP(cc),
    				TransportSocket:  buildDownstreamTLSTransportSocket(opt.ToTransportSocket(mtls)),
    				Name:             cc.Name(opt.Protocol),
    			})
    		case istionetworking.ListenerProtocolTCP:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/istio_ca.go

    	for {
    		select {
    		case <-timerC:
    			timerC = nil
    			handleEvent(s)
    
    		case event, ok := <-s.cacertsWatcher.Events:
    			if !ok {
    				log.Debug("plugin cacerts watch stopped")
    				return
    			}
    			if event.Has(fsnotify.Write) || event.Has(fsnotify.Create) {
    				if timerC == nil {
    					timerC = time.After(100 * time.Millisecond)
    				}
    			}
    
    		case err := <-s.cacertsWatcher.Errors:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/listener_test.go

    	anyPorts := append(privilegedPorts, unprivilegedPorts...)
    
    	// multiple test cases to ensure that privileged ports get treated differently
    	// only under certain conditions, namely
    	// 1) proxy explicitly indicated it is not using Iptables
    	// 2) proxy explicitly indicated it is not a privileged process (cannot bind to  1-1023)
    	cases := []struct {
    		name           string
    		unprivileged   bool // whether proxy is unprivileged
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  4. cmd/bucket-handlers.go

    		v := strings.ToLower(vs)
    		switch v {
    		case "true", "false":
    			objectLockEnabled = v == "true"
    		default:
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    			return
    		}
    	}
    
    	forceCreate := false
    	if vs := r.Header.Get(xhttp.MinIOForceCreate); len(vs) > 0 {
    		v := strings.ToLower(vs)
    		switch v {
    		case "true", "false":
    			forceCreate = v == "true"
    		default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/cluster_builder.go

    	c := &cluster.Cluster{
    		Name:                 name,
    		ClusterDiscoveryType: &cluster.Cluster_Type{Type: discoveryType},
    		CommonLbConfig:       &cluster.Cluster_CommonLbConfig{},
    	}
    	switch discoveryType {
    	case cluster.Cluster_STRICT_DNS, cluster.Cluster_LOGICAL_DNS:
    		if networkutil.AllIPv4(cb.proxyIPAddresses) {
    			// IPv4 only
    			c.DnsLookupFamily = cluster.Cluster_V4_ONLY
    		} else if networkutil.AllIPv6(cb.proxyIPAddresses) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_test.go

    		if !tc.success {
    			assert.Error(t, err, fmt.Sprintf("[case %d] error", i))
    		} else {
    			assert.NoError(t, err, "[case %d] error", i)
    		}
    		// Access the log of the previous, terminated container
    		previous = true
    		_, err = kubelet.validateContainerLogStatus("podName", podStatus, containerName, previous)
    		if !tc.pSuccess {
    			assert.Error(t, err, fmt.Sprintf("[case %d] error", i))
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  7. cmd/signature-v4_test.go

    						globalMinioDefaultRegion, serviceS3), "policy"),
    				},
    				"Policy": []string{"policy"},
    			},
    			expected: ErrNone,
    		},
    	}
    
    	// Run each test case individually.
    	for i, testCase := range testCases {
    		_, code := doesPolicySignatureMatch(testCase.form)
    		if code != testCase.expected {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    	}
    
    	// Fetch buffer for I/O, returns from the pool if not allocates a new one and returns.
    	var buffer []byte
    	switch size := data.Size(); {
    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size == -1:
    		if size := data.ActualSize(); size > 0 && size < fi.Erasure.BlockSize {
    			// Account for padding and forced compression overhead and encryption.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. pilot/pkg/model/telemetry_test.go

    					}
    				}
    			}
    			if diff := cmp.Diff(res, tt.want); diff != "" {
    				t.Errorf("got diff: %v", diff)
    			}
    		})
    	}
    }
    
    func TestGetInterval(t *testing.T) {
    	cases := []struct {
    		name              string
    		input, defaultVal time.Duration
    		expected          *durationpb.Duration
    	}{
    		{
    			name:       "return nil",
    			input:      0,
    			defaultVal: 0,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/crdclient/client.go

    	if err != nil {
    		return nil, fmt.Errorf("failed marhsalling modified resource: %v", err)
    	}
    	switch patchType {
    	case types.JSONPatchType:
    		ops, err := jsonpatch.CreatePatch(oldJSON, newJSON)
    		if err != nil {
    			return nil, err
    		}
    		return json.Marshal(ops)
    	case types.MergePatchType:
    		return jsonmerge.CreateMergePatch(oldJSON, newJSON)
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top