new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Helm.java
private static String valuesToString(Map<String, Object> helmValues) {
    StringBuffer valuesString = new StringBuffer("");

    // values can be Map or String
    for (Map.Entry<String,Object> entry : helmValues.entrySet()) {
      if (entry.getValue() instanceof Map) {
        Map<String, Object> item = (Map<String, Object>) entry.getValue();
        int index = 0;
        for (Map.Entry<String,Object> itemEntry : item.entrySet()) {
          valuesString.append(" --set \"" + entry.getKey() + "[" + index + "]."
              + itemEntry.getKey() + "=" + itemEntry.getValue() + "\"");
          ++index;
        }
      } else {
        valuesString.append(String.format(" --set \"%1s=%2s\"",
            entry.getKey(), entry.getValue().toString()
                .replaceAll("\\[", "{")
                .replaceAll("\\]", "}").replace(" ","")));
      }
    }
    return valuesString.toString();
  }
/**
   * Append the helmValues to the given string buffer.
   * @param helmValues hash map with key, value pairs
   * @return string with chart helmValues
   */
Append the helmValues to the given string buffer.
@param helmValues hash map with key, value pairs
@return string with chart helmValues
Append the helmValues to the given string buffer . @param helmValues hash map with key value pairs @return string with chart helmValues
private static String valuesToString(Map<String, Object> helmValues) {
    StringBuffer valuesString = new StringBuffer("");
    for (Map.Entry<String,Object> entry : helmValues.entrySet()) {
      if (entry.getValue() instanceof Map) {
        Map<String, Object> item = (Map<String, Object>) entry.getValue();
        int index = 0;
        for (Map.Entry<String,Object> itemEntry : item.entrySet()) {
          valuesString.append(" --set \"" + entry.getKey() + "[" + index + "]."
              + itemEntry.getKey() + "=" + itemEntry.getValue() + "\"");
          ++index;
        }
      } else {
        valuesString.append(String.format(" --set \"%1s=%2s\"",
            entry.getKey(), entry.getValue().toString()
                .replaceAll("\\[", "{")
                .replaceAll("\\]", "}").replace(" ","")));
      }
    }
    return valuesString.toString();
  }
private static String valuesToString ( Map < String , Object > helmValues ) { StringBuffer valuesString = new StringBuffer ( "" ) ; for ( Map . Entry < String , Object > entry : helmValues . entrySet ( ) ) { if ( entry . getValue ( ) instanceof Map ) { Map < String , Object > item = ( Map < String , Object > ) entry . getValue ( ) ; int index = 0 ; for ( Map . Entry < String , Object > itemEntry : item . entrySet ( ) ) { valuesString . append ( " --set \"" + entry . getKey ( ) + "[" + index + "]." + itemEntry . getKey ( ) + "=" + itemEntry . getValue ( ) + "\"" ) ; ++ index ; } } else { valuesString . append ( String . format ( " --set \"%1s=%2s\"" , entry . getKey ( ) , entry . getValue ( ) . toString ( ) . replaceAll ( "\\[" , "{" ) . replaceAll ( "\\]" , "}" ) . replace ( " " , "" ) ) ) ; } } return valuesString . toString ( ) ; }
Append the helmValues to the given string buffer.
Append the helmValues to the given string buffer .
// values can be Map or String