public static Map<String,?> readKubeConfig() {
        String kubeConfig = System.getenv("KUBECONFIG");

        Reader reader = kubeConfig == null
                ? getFileReaderFromDir(new File(getHomeDir(),".kube/config"))
                : getFileReaderFromDir(new File(kubeConfig));
        if (reader != null) {
            Yaml ret = new Yaml();
            return (Map<String, ?>) ret.load(reader);
        }
        return null;
    }
Helper method for extractArgs(exposed for test)

@param argLines list of string arrays containing lines with words
@return map of parsed arguments
src/main/java/io/fabric8/maven/docker/util/DockerFileUtil.java