Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for IntVal (0.14 sec)

  1. pilot/pkg/serviceregistry/serviceregistry_test.go

    	t.Helper()
    	// avoid mutating input
    	svc = svc.DeepCopy()
    	// simulate actual k8s behavior
    	for i, port := range svc.Spec.Ports {
    		if port.TargetPort.IntVal == 0 && port.TargetPort.StrVal == "" {
    			svc.Spec.Ports[i].TargetPort.IntVal = port.Port
    		}
    	}
    
    	_, err := c.CoreV1().Services(svc.Namespace).Create(context.Background(), svc, metav1.CreateOptions{})
    	if kerrors.IsAlreadyExists(err) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticdata/data.go

    	switch u := c.Val(); u.Kind() {
    	case constant.Bool:
    		i := int64(obj.Bool2int(constant.BoolVal(u)))
    		s.WriteInt(base.Ctxt, noff, wid, i)
    
    	case constant.Int:
    		s.WriteInt(base.Ctxt, noff, wid, ir.IntVal(c.Type(), u))
    
    	case constant.Float:
    		f, _ := constant.Float64Val(u)
    		switch c.Type().Kind() {
    		case types.TFLOAT32:
    			s.WriteFloat32(base.Ctxt, noff, float32(f))
    		case types.TFLOAT64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/const.go

    		return -1
    	}
    
    	v := toint(n.Val())
    	if v.Kind() != constant.Int || constant.Sign(v) < 0 {
    		return -1
    	}
    	if ir.ConstOverflow(v, types.Types[types.TINT]) {
    		return -2
    	}
    	return ir.IntVal(types.Types[types.TINT], v)
    }
    
    // callOrChan reports whether n is a call or channel operation.
    func callOrChan(n ir.Node) bool {
    	switch n.Op() {
    	case ir.OAPPEND,
    		ir.OCALL,
    		ir.OCALLFUNC,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. pkg/volume/portworx/portworx_util.go

    // port for osdMgmtDefaultPort
    func lookupPXAPIPortFromService(svc *v1.Service) int32 {
    	for _, p := range svc.Spec.Ports {
    		if p.Port == osdMgmtDefaultPort {
    			return p.TargetPort.IntVal
    		}
    	}
    	return osdMgmtDefaultPort // default
    }
    
    // getPortworxService returns the portworx cluster service from the API server
    func getPortworxService(host volume.VolumeHost) (*v1.Service, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  5. operator/pkg/apis/istio/v1alpha1/validation/validation.go

    			if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.String) {
    				// Do not validate named ports
    				continue
    			}
    			if p.TargetPort != nil && p.TargetPort.Type == int64(intstr.Int) {
    				tp = int(p.TargetPort.IntVal.GetValue())
    			}
    			if tp == 0 && p.Port > 1024 {
    				// Target port defaults to port. If its >1024, it is safe.
    				continue
    			}
    			if tp < 1024 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 20:02:28 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. api/api-rules/violation_exceptions.list

    API rule violation: names_match,k8s.io/apimachinery/pkg/runtime,Unknown,ContentType
    API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,IntVal
    API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,StrVal
    API rule violation: names_match,k8s.io/apimachinery/pkg/util/intstr,IntOrString,Type
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  7. pkg/controller/disruption/disruption.go

    		if desiredHealthy < 0 {
    			desiredHealthy = 0
    		}
    	} else if pdb.Spec.MinAvailable != nil {
    		if pdb.Spec.MinAvailable.Type == intstr.Int {
    			desiredHealthy = pdb.Spec.MinAvailable.IntVal
    			expectedCount = int32(len(pods))
    		} else if pdb.Spec.MinAvailable.Type == intstr.String {
    			expectedCount, unmanagedPods, err = dc.getExpectedScale(ctx, pdb, pods)
    			if err != nil {
    				return
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  8. operator/pkg/apis/istio/v1alpha1/values_types.proto

    //
    // +protobuf=true
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    // +k8s:openapi-gen=true
    message IntOrString {
      int64 type = 1;
    
      google.protobuf.Int32Value intVal = 2;
    
      google.protobuf.StringValue strVal = 3;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  9. operator/pkg/apis/istio/v1alpha1/values_types.pb.go

    	sizeCache     protoimpl.SizeCache
    	unknownFields protoimpl.UnknownFields
    
    	Type   int64                   `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
    	IntVal *wrapperspb.Int32Value  `protobuf:"bytes,2,opt,name=intVal,proto3" json:"intVal,omitempty"`
    	StrVal *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=strVal,proto3" json:"strVal,omitempty"`
    }
    
    func (x *IntOrString) Reset() {
    	*x = IntOrString{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 01:55:05 UTC 2024
    - 329.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssagen/ssa.go

    		case t.IsInterface():
    			return s.constInterface(t)
    		default:
    			return s.constNil(t)
    		}
    	case ir.OLITERAL:
    		switch u := n.Val(); u.Kind() {
    		case constant.Int:
    			i := ir.IntVal(n.Type(), u)
    			switch n.Type().Size() {
    			case 1:
    				return s.constInt8(n.Type(), int8(i))
    			case 2:
    				return s.constInt16(n.Type(), int16(i))
    			case 4:
    				return s.constInt32(n.Type(), int32(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top