Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for IntPtr (0.15 sec)

  1. pkg/kubelet/kuberuntime/labels_test.go

    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    				Port: intstr.FromString("80"),
    			},
    		},
    	}
    	container := &v1.Container{
    		Name:                   "test_container",
    		TerminationMessagePath: "/somepath",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta1/rollingupdatestatefulsetstrategy.go

    package v1beta1
    
    import (
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // RollingUpdateStatefulSetStrategyApplyConfiguration represents an declarative configuration of the RollingUpdateStatefulSetStrategy type for use
    // with apply.
    type RollingUpdateStatefulSetStrategyApplyConfiguration struct {
    	Partition      *int32              `json:"partition,omitempty"`
    	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 18:01:05 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. operator/pkg/translate/strategic_port_merge_test.go

    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    )
    
    var (
    	httpsPort = &v1.ServicePort{
    		Name:       "https",
    		Protocol:   v1.ProtocolTCP,
    		Port:       443,
    		TargetPort: intstr.IntOrString{IntVal: 8443},
    	}
    	quicPort = &v1.ServicePort{
    		Name:       "http3-quic",
    		Protocol:   v1.ProtocolUDP,
    		Port:       443,
    		TargetPort: intstr.IntOrString{IntVal: 8443},
    	}
    	httpPort = &v1.ServicePort{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 21 03:06:37 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/util.go

    	portName := svcPort.TargetPort
    	switch portName.Type {
    	case intstr.String:
    		name := portName.StrVal
    		for _, container := range pod.Spec.Containers {
    			for _, port := range container.Ports {
    				if port.Name == name && port.Protocol == svcPort.Protocol {
    					return int(port.ContainerPort), nil
    				}
    			}
    		}
    	case intstr.Int:
    		return portName.IntValue(), nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 28 02:01:47 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/client-go/applyconfigurations/core/v1/httpgetaction.go

    package v1
    
    import (
    	v1 "k8s.io/api/core/v1"
    	intstr "k8s.io/apimachinery/pkg/util/intstr"
    )
    
    // HTTPGetActionApplyConfiguration represents an declarative configuration of the HTTPGetAction type for use
    // with apply.
    type HTTPGetActionApplyConfiguration struct {
    	Path        *string                        `json:"path,omitempty"`
    	Port        *intstr.IntOrString            `json:"port,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  6. pkg/registry/apps/deployment/strategy_test.go

    			},
    			Strategy: apps.DeploymentStrategy{
    				Type: apps.RollingUpdateDeploymentStrategyType,
    				RollingUpdate: &apps.RollingUpdateDeployment{
    					MaxSurge:       intstr.FromInt32(1),
    					MaxUnavailable: intstr.FromInt32(1),
    				},
    			},
    			Template: api.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: selectorLabels,
    				},
    				Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. pkg/kube/inject/app_probe.go

    			return nil
    		}
    
    		var probePort *intstr.IntOrString
    		if p.HTTPGet != nil {
    			probePort = &p.HTTPGet.Port
    		} else {
    			probePort = &p.TCPSocket.Port
    		}
    
    		if probePort.Type == intstr.String {
    			port, exists := portMap[probePort.StrVal]
    			if !exists {
    				return nil
    			}
    			*probePort = intstr.FromInt32(port)
    		} else if probePort.IntVal == targetPort {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 04 15:06:24 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go

    // +k8s:conversion-fn=copy-only
    func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error {
    	*out = *in
    	return nil
    }
    
    func Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString(in **intstr.IntOrString, out *intstr.IntOrString, s conversion.Scope) error {
    	if *in == nil {
    		*out = intstr.IntOrString{} // zero value
    		return nil
    	}
    	*out = **in // copy
    	return nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 26 03:49:57 UTC 2020
    - 8.8K bytes
    - Viewed (0)
  9. pkg/registry/networking/networkpolicy/strategy_test.go

    					MatchLabels: map[string]string{"c": "d"},
    				},
    			},
    		},
    	}
    
    	ports := []networking.NetworkPolicyPort{
    		{
    			Protocol: &protocolTCP,
    			Port:     &intstr.IntOrString{Type: intstr.Int, IntVal: 31000},
    		},
    	}
    
    	ingress.Ports = ports
    	egress.Ports = ports
    
    	if hasEndPort {
    		ingress.Ports[0].EndPort = &endPort
    		egress.Ports[0].EndPort = &endPort
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/os/dir_darwin.go

    		size = 100
    		n = -1
    	}
    
    	var dirent syscall.Dirent
    	var entptr *syscall.Dirent
    	for len(names)+len(dirents)+len(infos) < size || n == -1 {
    		if errno := readdir_r(d.dir, &dirent, &entptr); errno != 0 {
    			if errno == syscall.EINTR {
    				continue
    			}
    			return names, dirents, infos, &PathError{Op: "readdir", Path: f.name, Err: errno}
    		}
    		if entptr == nil { // EOF
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top