Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for port_name (0.13 sec)

  1. pilot/pkg/model/gateway.go

    	} else if strings.HasPrefix(name, "https.") && strings.Count(name, ".") == 4 {
    		name = name[len("https."):]
    		// format: https.<port>.<port_name>.<gw name>.<gw namespace>
    		portNums, rest, ok := strings.Cut(name, ".")
    		if !ok {
    			return
    		}
    		portNumber, _ = strconv.Atoi(portNums)
    		portName, rest, ok = strings.Cut(rest, ".")
    		if !ok {
    			return
    		}
    		gwName, gwNs, ok := strings.Cut(rest, ".")
    		if !ok {
    			return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    							},
    						},
    					},
    					PortNames: map[int32]model.ServicePortName{
    						// Not a named port
    						80: {PortName: "80"},
    						// Named port found in WE
    						81: {PortName: "81", TargetPortName: "81-target"},
    						// Named port target found in WE
    						82: {PortName: "82", TargetPortName: "82-target"},
    						// Named port not found in WE
    						83: {PortName: "83", TargetPortName: "83-target"},
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    				// ServiceEntry has no explicit named targetPorts; targetPort only allows a number
    				// Instead, there is name matching between the port names
    				if named, f := svc.PortNames[int32(port.ServicePort)]; f {
    					// get port name or target port
    					tv, ok := p.Ports[named.PortName]
    					if ok {
    						// if we match one, override it. Otherwise, use the service port
    						targetPort = tv
    					} else if targetPort == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    			envs: []EnvVar{
    				{
    					Name:  "POD_NAME",
    					Value: "bar",
    				},
    			},
    			expectedSubPath:   "",
    			expectedMountPath: "",
    			expectedOk:        true,
    		},
    		{
    			name: "volumes expanded with no envs subpath",
    			container: &v1.Container{
    				VolumeMounts: []v1.VolumeMount{{SubPathExpr: "/foo/$(POD_NAME)"}},
    			},
    			expectedSubPath:   "/foo/$(POD_NAME)",
    			expectedMountPath: "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pkg/api/v1/pod/util.go

    // targetPort is a number, use that.  If the targetPort is a string, look that
    // string up in all named ports in all containers in the target pod.  If no
    // match is found, fail.
    func FindPort(pod *v1.Pod, svcPort *v1.ServicePort) (int, error) {
    	portName := svcPort.TargetPort
    	switch portName.Type {
    	case intstr.String:
    		name := portName.StrVal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/rc_patch.go

    	}
    
    	// This is a gateway. Get all the fields in the gateway's RDS route name
    	routePortNumber, portName, gateway := model.ParseGatewayRDSRouteName(rc.Name)
    	if rMatch.PortNumber != 0 && !anyPortMatches(portMap, routePortNumber, int(rMatch.PortNumber)) {
    		return false
    	}
    	if rMatch.PortName != "" && rMatch.PortName != portName {
    		return false
    	}
    	if rMatch.Gateway != "" && rMatch.Gateway != gateway {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. pkg/proxy/endpointslicecache.go

    			if port.Name == nil {
    				klog.ErrorS(nil, "Ignoring port with nil name", "portName", port.Name)
    				continue
    			}
    			// TODO: handle nil ports to mean "all"
    			if port.Port == nil || *port.Port == int32(0) {
    				klog.ErrorS(nil, "Ignoring invalid endpoint port", "portName", *port.Name)
    				continue
    			}
    
    			svcPortName := ServicePortName{
    				NamespacedName: serviceNN,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. plugin/pkg/admission/security/podsecurity/testdata/pod_baseline.yaml

        - /monitor
        - --stackdriver-prefix=container.googleapis.com/internal/addons
        - --api-override=https://test-monitoring.sandbox.googleapis.com/
        - --pod-id=$(POD_NAME)
        - --namespace-id=$(POD_NAMESPACE)
        - --v=2
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 04 16:26:30 UTC 2021
    - 18.1K bytes
    - Viewed (0)
  9. plugin/pkg/admission/security/podsecurity/testdata/pod_restricted.yaml

        - /monitor
        - --stackdriver-prefix=container.googleapis.com/internal/addons
        - --api-override=https://test-monitoring.sandbox.googleapis.com/
        - --pod-id=$(POD_NAME)
        - --namespace-id=$(POD_NAMESPACE)
        - --v=2
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 04 16:26:30 UTC 2021
    - 18.3K bytes
    - Viewed (0)
  10. pilot/pkg/networking/telemetry/telemetry_test.go

    	}
    }
    
    func TestBuildInboundStatPrefix(t *testing.T) {
    	tests := []struct {
    		name        string
    		statPattern string
    		tm          FilterChainMetadata
    		subset      string
    		port        uint32
    		portName    string
    		want        string
    	}{
    		{
    			"Service only pattern",
    			"%SERVICE%",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 02:38:43 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top