new-integration-tests/src/test/java/oracle/weblogic/kubernetes/utils/CommonTestUtils.java
public static HelmParams installAndVerifyVoyager(String voyagerNamespace,
                                                   String cloudProvider,
                                                   boolean enableValidatingWebhook) {
    LoggingFacade logger = getLogger();
    final String voyagerPodNamePrefix = VOYAGER_CHART_NAME +  "-release";

    // Helm install parameters
    HelmParams voyagerHelmParams = new HelmParams()
        .releaseName(VOYAGER_RELEASE_NAME + "-" + voyagerNamespace.substring(3))
        .namespace(voyagerNamespace)
        .repoUrl(APPSCODE_REPO_URL)
        .repoName(APPSCODE_REPO_NAME)
        .chartName(VOYAGER_CHART_NAME)
        .chartVersion(VOYAGER_CHART_VERSION);

    // Voyager chart values to override
    VoyagerParams voyagerParams = new VoyagerParams()
        .helmParams(voyagerHelmParams)
        .cloudProvider(cloudProvider)
        .enableValidatingWebhook(enableValidatingWebhook);

    // install Voyager
    assertThat(installVoyager(voyagerParams))
        .as("Test Voyager installation succeeds")
        .withFailMessage("Voyager installation is failed")
        .isTrue();

    // verify that Voyager is installed
    logger.info("Checking Voyager release {0} status in namespace {1}",
        VOYAGER_RELEASE_NAME, voyagerNamespace);
    assertTrue(isHelmReleaseDeployed(VOYAGER_RELEASE_NAME, voyagerNamespace),
        String.format("Voyager release %s is not in deployed status in namespace %s",
            VOYAGER_RELEASE_NAME, voyagerNamespace));
    logger.info("Voyager release {0} status is deployed in namespace {1}",
        VOYAGER_RELEASE_NAME, voyagerNamespace);

    // wait until the Voyager pod is ready.
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info(
                "Waiting for Voyager to be ready in namespace {0} (elapsed time {1}ms, remaining time {2}ms)",
                voyagerNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> isVoyagerReady(voyagerNamespace, voyagerPodNamePrefix),
            "isVoyagerReady failed with ApiException"));

    return voyagerHelmParams;
  }
/**
   * Install Voyager and wait up to five minutes until the Voyager pod is ready.
   *
   * @param voyagerNamespace the namespace in which the Voyager will be installed
   * @param cloudProvider the name of bare metal Kubernetes cluster
   * @param enableValidatingWebhook whehter to enable validating webhook or not
   * @return the Voyager Helm installation parameters
   */
Install Voyager and wait up to five minutes until the Voyager pod is ready.
@param voyagerNamespace the namespace in which the Voyager will be installed
@param cloudProvider the name of bare metal Kubernetes cluster
@param enableValidatingWebhook whehter to enable validating webhook or not
@return the Voyager Helm installation parameters
Install Voyager and wait up to five minutes until the Voyager pod is ready . @param voyagerNamespace the namespace in which the Voyager will be installed @param cloudProvider the name of bare metal Kubernetes cluster @param enableValidatingWebhook whehter to enable validating webhook or not @return the Voyager Helm installation parameters
public static HelmParams installAndVerifyVoyager(String voyagerNamespace,
                                                   String cloudProvider,
                                                   boolean enableValidatingWebhook) {
    LoggingFacade logger = getLogger();
    final String voyagerPodNamePrefix = VOYAGER_CHART_NAME +  "-release";
    HelmParams voyagerHelmParams = new HelmParams()
        .releaseName(VOYAGER_RELEASE_NAME + "-" + voyagerNamespace.substring(3))
        .namespace(voyagerNamespace)
        .repoUrl(APPSCODE_REPO_URL)
        .repoName(APPSCODE_REPO_NAME)
        .chartName(VOYAGER_CHART_NAME)
        .chartVersion(VOYAGER_CHART_VERSION);
    VoyagerParams voyagerParams = new VoyagerParams()
        .helmParams(voyagerHelmParams)
        .cloudProvider(cloudProvider)
        .enableValidatingWebhook(enableValidatingWebhook);
    assertThat(installVoyager(voyagerParams))
        .as("Test Voyager installation succeeds")
        .withFailMessage("Voyager installation is failed")
        .isTrue();
    logger.info("Checking Voyager release {0} status in namespace {1}",
        VOYAGER_RELEASE_NAME, voyagerNamespace);
    assertTrue(isHelmReleaseDeployed(VOYAGER_RELEASE_NAME, voyagerNamespace),
        String.format("Voyager release %s is not in deployed status in namespace %s",
            VOYAGER_RELEASE_NAME, voyagerNamespace));
    logger.info("Voyager release {0} status is deployed in namespace {1}",
        VOYAGER_RELEASE_NAME, voyagerNamespace);
    withStandardRetryPolicy
        .conditionEvaluationListener(
            condition -> logger.info(
                "Waiting for Voyager to be ready in namespace {0} (elapsed time {1}ms, remaining time {2}ms)",
                voyagerNamespace,
                condition.getElapsedTimeInMS(),
                condition.getRemainingTimeInMS()))
        .until(assertDoesNotThrow(() -> isVoyagerReady(voyagerNamespace, voyagerPodNamePrefix),
            "isVoyagerReady failed with ApiException"));
    return voyagerHelmParams;
  }
public static HelmParams installAndVerifyVoyager ( String voyagerNamespace , String cloudProvider , boolean enableValidatingWebhook ) { LoggingFacade logger = getLogger ( ) ; final String voyagerPodNamePrefix = VOYAGER_CHART_NAME + "-release" ; HelmParams voyagerHelmParams = new HelmParams ( ) . releaseName ( VOYAGER_RELEASE_NAME + "-" + voyagerNamespace . substring ( 3 ) ) . namespace ( voyagerNamespace ) . repoUrl ( APPSCODE_REPO_URL ) . repoName ( APPSCODE_REPO_NAME ) . chartName ( VOYAGER_CHART_NAME ) . chartVersion ( VOYAGER_CHART_VERSION ) ; VoyagerParams voyagerParams = new VoyagerParams ( ) . helmParams ( voyagerHelmParams ) . cloudProvider ( cloudProvider ) . enableValidatingWebhook ( enableValidatingWebhook ) ; assertThat ( installVoyager ( voyagerParams ) ) . as ( "Test Voyager installation succeeds" ) . withFailMessage ( "Voyager installation is failed" ) . isTrue ( ) ; logger . info ( "Checking Voyager release {0} status in namespace {1}" , VOYAGER_RELEASE_NAME , voyagerNamespace ) ; assertTrue ( isHelmReleaseDeployed ( VOYAGER_RELEASE_NAME , voyagerNamespace ) , String . format ( "Voyager release %s is not in deployed status in namespace %s" , VOYAGER_RELEASE_NAME , voyagerNamespace ) ) ; logger . info ( "Voyager release {0} status is deployed in namespace {1}" , VOYAGER_RELEASE_NAME , voyagerNamespace ) ; withStandardRetryPolicy . conditionEvaluationListener ( condition -> logger . info ( "Waiting for Voyager to be ready in namespace {0} (elapsed time {1}ms, remaining time {2}ms)" , voyagerNamespace , condition . getElapsedTimeInMS ( ) , condition . getRemainingTimeInMS ( ) ) ) . until ( assertDoesNotThrow ( ( ) -> isVoyagerReady ( voyagerNamespace , voyagerPodNamePrefix ) , "isVoyagerReady failed with ApiException" ) ) ; return voyagerHelmParams ; }
Install Voyager and wait up to five minutes until the Voyager pod is ready.
Install Voyager and wait up to five minutes until the Voyager pod is ready .
// Helm install parameters // Voyager chart values to override // install Voyager // verify that Voyager is installed // wait until the Voyager pod is ready.