new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static boolean upgradeAndVerifyOperator(String opNamespace,
                                                 String... domainNamespace) {
    LoggingFacade logger = getLogger();
    // Helm upgrade parameters
    HelmParams opHelmParams = new HelmParams()
        .releaseName(OPERATOR_RELEASE_NAME)
        .namespace(opNamespace)
        .chartDir(OPERATOR_CHART_DIR);

    // operator chart values
    OperatorParams opParams = new OperatorParams()
        .helmParams(opHelmParams)
        .domainNamespaces(Arrays.asList(domainNamespace));

    // upgrade operator
    logger.info("Upgrading operator in namespace {0}", opNamespace);
    if (!upgradeOperator(opParams)) {
      logger.info("Failed to upgrade operator in namespace {0}", opNamespace);
      return false;
    }
    logger.info("Operator upgraded in namespace {0}", opNamespace);

    // list Helm releases matching operator release name in operator namespace
    logger.info("Checking operator release {0} status in namespace {1}",
        OPERATOR_RELEASE_NAME, opNamespace);
    if (!isHelmReleaseDeployed(OPERATOR_RELEASE_NAME, opNamespace)) {
      logger.info("Operator release {0} is not in deployed status in namespace {1}",
          OPERATOR_RELEASE_NAME, opNamespace);
      return false;
    }
    logger.info("Operator release {0} status is deployed in namespace {1}",
        OPERATOR_RELEASE_NAME, opNamespace);

    return true;
  }
/**
   * Upgrade WebLogic operator to manage the given domain namespaces.
   *
   * @param opNamespace the operator namespace in which the operator will be upgraded
   * @param domainNamespace the list of the domain namespaces which will be managed by the operator
   * @return true if successful
   */
Upgrade WebLogic operator to manage the given domain namespaces.
@param opNamespace the operator namespace in which the operator will be upgraded
@param domainNamespace the list of the domain namespaces which will be managed by the operator
@return true if successful
Upgrade WebLogic operator to manage the given domain namespaces . @param opNamespace the operator namespace in which the operator will be upgraded @param domainNamespace the list of the domain namespaces which will be managed by the operator @return true if successful
public static boolean upgradeAndVerifyOperator(String opNamespace,
                                                 String... domainNamespace) {
    LoggingFacade logger = getLogger();
    HelmParams opHelmParams = new HelmParams()
        .releaseName(OPERATOR_RELEASE_NAME)
        .namespace(opNamespace)
        .chartDir(OPERATOR_CHART_DIR);
    OperatorParams opParams = new OperatorParams()
        .helmParams(opHelmParams)
        .domainNamespaces(Arrays.asList(domainNamespace));
    logger.info("Upgrading operator in namespace {0}", opNamespace);
    if (!upgradeOperator(opParams)) {
      logger.info("Failed to upgrade operator in namespace {0}", opNamespace);
      return false;
    }
    logger.info("Operator upgraded in namespace {0}", opNamespace);
    logger.info("Checking operator release {0} status in namespace {1}",
        OPERATOR_RELEASE_NAME, opNamespace);
    if (!isHelmReleaseDeployed(OPERATOR_RELEASE_NAME, opNamespace)) {
      logger.info("Operator release {0} is not in deployed status in namespace {1}",
          OPERATOR_RELEASE_NAME, opNamespace);
      return false;
    }
    logger.info("Operator release {0} status is deployed in namespace {1}",
        OPERATOR_RELEASE_NAME, opNamespace);
    return true;
  }
public static boolean upgradeAndVerifyOperator ( String opNamespace , String ... domainNamespace ) { LoggingFacade logger = getLogger ( ) ; HelmParams opHelmParams = new HelmParams ( ) . releaseName ( OPERATOR_RELEASE_NAME ) . namespace ( opNamespace ) . chartDir ( OPERATOR_CHART_DIR ) ; OperatorParams opParams = new OperatorParams ( ) . helmParams ( opHelmParams ) . domainNamespaces ( Arrays . asList ( domainNamespace ) ) ; logger . info ( "Upgrading operator in namespace {0}" , opNamespace ) ; if ( ! upgradeOperator ( opParams ) ) { logger . info ( "Failed to upgrade operator in namespace {0}" , opNamespace ) ; return false ; } logger . info ( "Operator upgraded in namespace {0}" , opNamespace ) ; logger . info ( "Checking operator release {0} status in namespace {1}" , OPERATOR_RELEASE_NAME , opNamespace ) ; if ( ! isHelmReleaseDeployed ( OPERATOR_RELEASE_NAME , opNamespace ) ) { logger . info ( "Operator release {0} is not in deployed status in namespace {1}" , OPERATOR_RELEASE_NAME , opNamespace ) ; return false ; } logger . info ( "Operator release {0} status is deployed in namespace {1}" , OPERATOR_RELEASE_NAME , opNamespace ) ; return true ; }
Upgrade WebLogic operator to manage the given domain namespaces.
Upgrade WebLogic operator to manage the given domain namespaces .
// Helm upgrade parameters // operator chart values // upgrade operator // list Helm releases matching operator release name in operator namespace