Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for portMap (0.12 sec)

  1. pilot/pkg/serviceregistry/kube/controller/pod.go

    	workloadInstance := &model.WorkloadInstance{
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    		Kind:      model.PodKind,
    		Endpoint:  ep,
    		PortMap:   getPortMap(pod),
    	}
    	pc.c.handlers.NotifyWorkloadHandlers(workloadInstance, ev)
    }
    
    func getPortMap(pod *v1.Pod) map[string]uint32 {
    	pmap := map[string]uint32{}
    	for _, c := range pod.Spec.Containers {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/types.go

    	}
    	if len(n.UsedPorts) > 0 {
    		// HostPortInfo is a map-in-map struct
    		// make sure it's deep copied
    		for ip, portMap := range n.UsedPorts {
    			clone.UsedPorts[ip] = make(map[ProtocolPort]struct{})
    			for protocolPort, v := range portMap {
    				clone.UsedPorts[ip][protocolPort] = v
    			}
    		}
    	}
    	if len(n.PodsWithAffinity) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/controller.go

    	// by default, use the numbered targetPort
    	istioEndpoint.EndpointPort = uint32(targetPort.num)
    
    	if targetPort.name != "" {
    		// This is a named port, find the corresponding port in the port map
    		matchedPort := wi.PortMap[targetPort.name]
    		if matchedPort != 0 {
    			istioEndpoint.EndpointPort = matchedPort
    		} else if targetPort.explicitName {
    			// No match found, and we expect the name explicitly in the service, skip this endpoint
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/publishing_gradle_plugins.adoc

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    [[publishing_portal]]
    = Publishing Plugins to the Gradle Plugin Portal
    :portal: Gradle Plugin Portal
    :plugin: Greeting Plugin
    :publishplugin: Plugin Publishing Plugin
    :plugin-reference-documentation: https://plugins.gradle.org/docs/publish-plugin[reference documentation of the {publishplugin}]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. pkg/volume/iscsi/iscsi_util.go

    func makePDNameInternal(host volume.VolumeHost, portal string, iqn string, lun string, iface string) string {
    	return filepath.Join(host.GetPluginDir(iscsiPluginName), "iface-"+iface, portal+"-"+iqn+"-lun-"+lun)
    }
    
    // make a directory like /var/lib/kubelet/plugins/kubernetes.io/iscsi/volumeDevices/iface_name/portal-some_iqn-lun-lun_id
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/iscsi_util_test.go

    	portal, iqn, err := extractPortalAndIqn(devicePath)
    	if err != nil || portal != "127.0.0.1:3260" || iqn != "iqn.2014-12.com.example:test.tgt00" {
    		t.Errorf("extractPortalAndIqn: got %v %s %s", err, portal, iqn)
    	}
    	devicePath = "127.0.0.1:3260-eui.02004567A425678D-lun-0"
    	portal, iqn, err = extractPortalAndIqn(devicePath)
    	if err != nil || portal != "127.0.0.1:3260" || iqn != "eui.02004567A425678D" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 09:43:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  7. pkg/volume/iscsi/iscsi_test.go

    		t.Errorf("Expected true for mounter.IsReadOnly")
    	}
    }
    
    func TestPortalMounter(t *testing.T) {
    	if portal := portalMounter("127.0.0.1"); portal != "127.0.0.1:3260" {
    		t.Errorf("wrong portal: %s", portal)
    	}
    	if portal := portalMounter("127.0.0.1:3260"); portal != "127.0.0.1:3260" {
    		t.Errorf("wrong portal: %s", portal)
    	}
    }
    
    type testcase struct {
    	name      string
    	defaultNs string
    	spec      *volume.Spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  8. pkg/volume/iscsi/iscsi.go

    // volumeName: pv0001
    func (iscsi *iscsiDisk) GetPodDeviceMapPath() (string, string) {
    	return iscsi.iscsiPodDeviceMapPath()
    }
    
    func portalMounter(portal string) string {
    	if !strings.Contains(portal, ":") {
    		portal = portal + ":3260"
    	}
    	return portal
    }
    
    // get iSCSI volume info: readOnly and fstype
    func getISCSIVolumeInfo(spec *volume.Spec) (bool, string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. tests/test_openapi_separate_input_output_schemas.py

        @app.post("/items-list/")
        def create_item_list(item: List[Item]):
            return item
    
        @app.get("/items/")
        def read_items() -> List[Item]:
            return [
                Item(
                    name="Portal Gun",
                    description="Device to travel through the multi-rick-verse",
                    sub=SubItem(subname="subname"),
                ),
                Item(name="Plumbus"),
            ]
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/common/extensions.kt

    import jetbrains.buildServer.configs.kotlin.failureConditions.failOnText
    import jetbrains.buildServer.configs.kotlin.ui.add
    import java.util.Locale
    
    const val pluginPortalUrlOverride = "-Dorg.gradle.internal.plugins.portal.url.override=%gradle.plugins.portal.url%"
    
    fun BuildSteps.customGradle(init: GradleBuildStep.() -> Unit, custom: GradleBuildStep.() -> Unit): GradleBuildStep =
        GradleBuildStep(init)
            .apply(custom)
            .also {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top