enricher/standard/src/main/java/io/fabric8/maven/enricher/standard/DefaultServiceEnricher.java
private List<ServicePort> extractPortsFromConfig() {
        List<ServicePort> ret = new LinkedList<>();
        String ports = getConfig(Config.port);
        if (ports != null) {
            for (String port : StringUtils.split(ports, ",")) {
                ret.add(parsePortMapping(port));
            }
        }
        return ret;
    }
private List<ServicePort> extractPortsFromConfig() {
        List<ServicePort> ret = new LinkedList<>();
        String ports = getConfig(Config.port);
        if (ports != null) {
            for (String port : StringUtils.split(ports, ",")) {
                ret.add(parsePortMapping(port));
            }
        }
        return ret;
    }
private List < ServicePort > extractPortsFromConfig ( ) { List < ServicePort > ret = new LinkedList <> ( ) ; String ports = getConfig ( Config . port ) ; if ( ports != null ) { for ( String port : StringUtils . split ( ports , "," ) ) { ret . add ( parsePortMapping ( port ) ) ; } } return ret ; }
Config can override ports
Config can override ports