integration-tests/src/test/java/oracle/kubernetes/operator/MiiConfigUpdateBaseTest.java
protected void createImageAndPatchDomain(Domain domain,
                                           String imageName,
                                           String wdtModelFile,
                                           String wdtModelPropFile) {
    Map<String, Object> domainMap = domain.getDomainMap();
    wdtConfigUpdateImage(domainMap, imageName, wdtModelFile, wdtModelPropFile);

    // push the image to docker repository
    if (BaseTest.SHARED_CLUSTER) {
      try {
        TestUtils.loginAndPushImageToOcir(imageName);
      } catch (Exception ex) {
        ex.printStackTrace();
        fail("Failed to push image <" + imageName + "> to Docker repo");
      }
    }

    // patch to change image tag and verify domain restarted successfully
    modifyDomainYamlWithImageTag(domain, imageName);
  }
/**
   * Create image to update config and patch domain to change domain-level restart version.
   * @param domain the Domain object where to patch domain and update domain config values
   * @param destDir destination directory name to copy model files to
   * @param modelFiles names of model files to copy
   */
Create image to update config and patch domain to change domain-level restart version.
@param domain the Domain object where to patch domain and update domain config values
@param destDir destination directory name to copy model files to
@param modelFiles names of model files to copy
Create image to update config and patch domain to change domain - level restart version . @param domain the Domain object where to patch domain and update domain config values @param destDir destination directory name to copy model files to @param modelFiles names of model files to copy
protected void createImageAndPatchDomain(Domain domain,
                                           String imageName,
                                           String wdtModelFile,
                                           String wdtModelPropFile) {
    Map<String, Object> domainMap = domain.getDomainMap();
    wdtConfigUpdateImage(domainMap, imageName, wdtModelFile, wdtModelPropFile);
    if (BaseTest.SHARED_CLUSTER) {
      try {
        TestUtils.loginAndPushImageToOcir(imageName);
      } catch (Exception ex) {
        ex.printStackTrace();
        fail("Failed to push image <" + imageName + "> to Docker repo");
      }
    }
    modifyDomainYamlWithImageTag(domain, imageName);
  }
protected void createImageAndPatchDomain ( Domain domain , String imageName , String wdtModelFile , String wdtModelPropFile ) { Map < String , Object > domainMap = domain . getDomainMap ( ) ; wdtConfigUpdateImage ( domainMap , imageName , wdtModelFile , wdtModelPropFile ) ; if ( BaseTest . SHARED_CLUSTER ) { try { TestUtils . loginAndPushImageToOcir ( imageName ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; fail ( "Failed to push image <" + imageName + "> to Docker repo" ) ; } } modifyDomainYamlWithImageTag ( domain , imageName ) ; }
Create image to update config and patch domain to change domain-level restart version.
Create image to update config and patch domain to change domain - level restart version .
// push the image to docker repository // patch to change image tag and verify domain restarted successfully