src/main/java/org/edgegallery/appstore/application/inner/AppService.java
private Map<String, Object> loadvaluesYaml(File valuesYaml) {

        Map<String, Object> valuesYamlMap;
        Yaml yaml = new Yaml(new SafeConstructor());
        try (InputStream inputStream = new FileInputStream(valuesYaml)) {
            valuesYamlMap = yaml.load(inputStream);
        } catch (IOException e) {
            throw new AppException("failed to load value yaml form charts", ResponseConst.RET_LOAD_YAML_FAILED);
        }
        return valuesYamlMap;
    }
/**
     * Update helm chart values.
     *
     * @param valuesYaml values file
     */
Update helm chart values.
@param valuesYaml values file
Update helm chart values . @param valuesYaml values file
private Map<String, Object> loadvaluesYaml(File valuesYaml) {
        Map<String, Object> valuesYamlMap;
        Yaml yaml = new Yaml(new SafeConstructor());
        try (InputStream inputStream = new FileInputStream(valuesYaml)) {
            valuesYamlMap = yaml.load(inputStream);
        } catch (IOException e) {
            throw new AppException("failed to load value yaml form charts", ResponseConst.RET_LOAD_YAML_FAILED);
        }
        return valuesYamlMap;
    }
private Map < String , Object > loadvaluesYaml ( File valuesYaml ) { Map < String , Object > valuesYamlMap ; Yaml yaml = new Yaml ( new SafeConstructor ( ) ) ; try ( InputStream inputStream = new FileInputStream ( valuesYaml ) ) { valuesYamlMap = yaml . load ( inputStream ) ; } catch ( IOException e ) { throw new AppException ( "failed to load value yaml form charts" , ResponseConst . RET_LOAD_YAML_FAILED ) ; } return valuesYamlMap ; }
Update helm chart values.
Update helm chart values .