new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Helm.java
public static boolean upgrade(HelmParams params, Map<String, Object> chartValues) {
    String namespace = params.getNamespace();

    // assertions for required parameters
    assertThat(namespace)
        .as("make sure namespace is not empty or null")
        .isNotNull()
        .isNotEmpty();

    assertThat(params.getReleaseName())
        .as("make sure releaseName is not empty or null")
        .isNotNull()
        .isNotEmpty();

    assertThat(params.getChartDir())
        .as("make sure chart dir is not empty or null")
        .isNotNull()
        .isNotEmpty();

    // chart reference to be used in Helm upgrade
    String chartDir = params.getChartDir();

    getLogger().fine("Upgrading a release in namespace {0} using chart reference {1}", namespace, chartDir);

    // build Helm upgrade command
    String upgradeCmd = String.format("helm upgrade %1s %2s --namespace %3s --reuse-values",
        params.getReleaseName(), chartDir, params.getNamespace());

    // add override chart values
    upgradeCmd = upgradeCmd + valuesToString(chartValues);

    // run the command
    return exec(upgradeCmd);
  }
/**
   * Upgrade a Helm release.
   * @param params the parameters to Helm upgrade command such as namespace, release name,
   *               repo url or chart dir and chart name
   * @param chartValues the values to override in a chart
   * @return true on success, false otherwise
   */
Upgrade a Helm release.
@param params the parameters to Helm upgrade command such as namespace, release name,
repo url or chart dir and chart name
@param chartValues the values to override in a chart
@return true on success, false otherwise
Upgrade a Helm release . @param params the parameters to Helm upgrade command such as namespace release name repo url or chart dir and chart name @param chartValues the values to override in a chart @return true on success false otherwise
public static boolean upgrade(HelmParams params, Map<String, Object> chartValues) {
    String namespace = params.getNamespace();
    assertThat(namespace)
        .as("make sure namespace is not empty or null")
        .isNotNull()
        .isNotEmpty();
    assertThat(params.getReleaseName())
        .as("make sure releaseName is not empty or null")
        .isNotNull()
        .isNotEmpty();
    assertThat(params.getChartDir())
        .as("make sure chart dir is not empty or null")
        .isNotNull()
        .isNotEmpty();
    String chartDir = params.getChartDir();
    getLogger().fine("Upgrading a release in namespace {0} using chart reference {1}", namespace, chartDir);
    String upgradeCmd = String.format("helm upgrade %1s %2s --namespace %3s --reuse-values",
        params.getReleaseName(), chartDir, params.getNamespace());
    upgradeCmd = upgradeCmd + valuesToString(chartValues);
    return exec(upgradeCmd);
  }
public static boolean upgrade ( HelmParams params , Map < String , Object > chartValues ) { String namespace = params . getNamespace ( ) ; assertThat ( namespace ) . as ( "make sure namespace is not empty or null" ) . isNotNull ( ) . isNotEmpty ( ) ; assertThat ( params . getReleaseName ( ) ) . as ( "make sure releaseName is not empty or null" ) . isNotNull ( ) . isNotEmpty ( ) ; assertThat ( params . getChartDir ( ) ) . as ( "make sure chart dir is not empty or null" ) . isNotNull ( ) . isNotEmpty ( ) ; String chartDir = params . getChartDir ( ) ; getLogger ( ) . fine ( "Upgrading a release in namespace {0} using chart reference {1}" , namespace , chartDir ) ; String upgradeCmd = String . format ( "helm upgrade %1s %2s --namespace %3s --reuse-values" , params . getReleaseName ( ) , chartDir , params . getNamespace ( ) ) ; upgradeCmd = upgradeCmd + valuesToString ( chartValues ) ; return exec ( upgradeCmd ) ; }
Upgrade a Helm release.
Upgrade a Helm release .
// assertions for required parameters // chart reference to be used in Helm upgrade // build Helm upgrade command // add override chart values // run the command