Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for case2 (0.11 sec)

  1. 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)
  2. 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)
  3. pilot/pkg/xds/deltatest.go

    	if current == nil {
    		log.Debugf("ADS:%s: resources initialized", v3.GetShortType(w.TypeUrl))
    		return
    	}
    	if deltaRes == nil && deleted == nil && len(sotwRes) == 0 {
    		// TODO: it suspicious full is never nil - are there case where we should be deleting everything?
    		// Both SotW and Delta did not respond, nothing to compare
    		return
    	}
    	newByName := slices.GroupUnique(sotwRes, (*discovery.Resource).GetName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. 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)
  5. pilot/pkg/networking/core/listener_waypoint.go

    		// if service only has one port defined, use that as the port, otherwise use default listenerPort
    		port = service.Ports[0].Port
    
    		// Do not return blackhole cluster for service==nil case as there is a legitimate use case for
    		// calling this function with nil service: to route to a pre-defined statically configured cluster
    		// declared as part of the bootstrap.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                                             ReplicateOp replicate,
                                             mlir::ModuleOp module) {
      // TODO(b/325153657): Fix tpu_rewrite_pass so the parallel_execute case does
      //                    not need to be skipped.
      if (cluster->getParentOfType<ParallelExecuteOp>()) return success();
    
      auto num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    		},
    	}
    	return pod, status
    }
    
    func TestComputePodActions(t *testing.T) {
    	_, _, m, err := createTestRuntimeManager()
    	require.NoError(t, err)
    
    	// Creating a pair reference pod and status for the test cases to refer
    	// the specific fields.
    	basePod, baseStatus := makeBasePodAndStatus()
    	noAction := podActions{
    		SandboxID:         baseStatus.SandboxStatuses[0].Id,
    		ContainersToStart: []int{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    			switch madmin.BatchJobType(mj.JobType) {
    			case madmin.BatchJobReplicate:
    				objects = float64(mj.Replicate.Objects)
    				objectsFailed = float64(mj.Replicate.ObjectsFailed)
    				bucket = mj.Replicate.Bucket
    			case madmin.BatchJobKeyRotate:
    				objects = float64(mj.KeyRotate.Objects)
    				objectsFailed = float64(mj.KeyRotate.ObjectsFailed)
    				bucket = mj.KeyRotate.Bucket
    			case madmin.BatchJobExpire:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  9. pilot/pkg/bootstrap/server.go

    				s.secureGrpcServer.GracefulStop()
    			}
    			close(stopped)
    		}()
    
    		t := time.NewTimer(s.shutdownDuration)
    		select {
    		case <-t.C:
    			s.grpcServer.Stop()
    			if s.secureGrpcServer != nil {
    				s.secureGrpcServer.Stop()
    			}
    		case <-stopped:
    			t.Stop()
    		}
    
    		// Stop HTTP services.
    		ctx, cancel := context.WithTimeout(context.Background(), s.shutdownDuration)
    		defer cancel()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  10. CREDITS

    encouraged by the resulting cooperation.  However, in the case of
    software used on network servers, this result may fail to come about.
    The GNU General Public License permits making a modified version and
    letting the public access it on a server without ever releasing its
    source code to the public.
    
      The GNU Affero General Public License is designed specifically to
    ensure that, in such cases, the modified source code becomes available
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 15:34:20 UTC 2024
    - 1.7M bytes
    - Viewed (0)
Back to top