Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lookupPXAPIPortFromService (0.7 sec)

  1. pkg/volume/portworx/portworx_util.go

    	return volumeclient.VolumeDriver(util.portworxClient), nil
    }
    
    // lookupPXAPIPortFromService goes over all the ports in the given service and returns the target
    // 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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 12.2K bytes
    - Viewed (0)
Back to top