new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiMultiModel.java
private Domain createDomainResource(
      String domainUid, String domNamespace, String adminSecretName,
      String repoSecretName, String encryptionSecretName, 
      int replicaCount, String miiImage, String configMapName) {
    // create the domain CR
    Domain domain = new Domain()
            .apiVersion(DOMAIN_API_VERSION)
            .kind("Domain")
            .metadata(new V1ObjectMeta()
                    .name(domainUid)
                    .namespace(domNamespace))
            .spec(new DomainSpec()
                    .domainUid(domainUid)
                    .domainHomeSourceType("FromModel")
                    .image(miiImage)
                    .addImagePullSecretsItem(new V1LocalObjectReference()
                            .name(repoSecretName))
                    .webLogicCredentialsSecret(new V1SecretReference()
                            .name(adminSecretName)
                            .namespace(domNamespace))
                    .includeServerOutInPodLog(true)
                    .serverStartPolicy("IF_NEEDED")
                    .serverPod(new ServerPod()
                            .addEnvItem(new V1EnvVar()
                                    .name("JAVA_OPTIONS")
                                    .value("-Dweblogic.StdoutDebugEnabled=false"))
                            .addEnvItem(new V1EnvVar()
                                    .name("USER_MEM_ARGS")
                                    .value("-Djava.security.egd=file:/dev/./urandom ")))
                    .adminServer(new AdminServer()
                            .serverStartState("RUNNING")
                            .adminService(new AdminService()
                                    .addChannelsItem(new Channel()
                                            .channelName("default")
                                            .nodePort(0))))
                    .addClustersItem(new Cluster()
                            .clusterName("cluster-1")
                            .replicas(replicaCount)
                            .serverStartState("RUNNING"))
                    .configuration(new Configuration()
                            .model(new Model()
                                    .domainType("WLS")
                                    .runtimeEncryptionSecret(encryptionSecretName))
                        .introspectorJobActiveDeadlineSeconds(300L)));
    if (configMapName != null) {
      domain.spec().configuration().model().configMap(configMapName);
    }
    return domain;
  }
/**
   * Construct a domain object with the given parameters that can be used to create a domain resource.
   */
Construct a domain object with the given parameters that can be used to create a domain resource.
Construct a domain object with the given parameters that can be used to create a domain resource .
private Domain createDomainResource(
      String domainUid, String domNamespace, String adminSecretName,
      String repoSecretName, String encryptionSecretName, 
      int replicaCount, String miiImage, String configMapName) {
    Domain domain = new Domain()
            .apiVersion(DOMAIN_API_VERSION)
            .kind("Domain")
            .metadata(new V1ObjectMeta()
                    .name(domainUid)
                    .namespace(domNamespace))
            .spec(new DomainSpec()
                    .domainUid(domainUid)
                    .domainHomeSourceType("FromModel")
                    .image(miiImage)
                    .addImagePullSecretsItem(new V1LocalObjectReference()
                            .name(repoSecretName))
                    .webLogicCredentialsSecret(new V1SecretReference()
                            .name(adminSecretName)
                            .namespace(domNamespace))
                    .includeServerOutInPodLog(true)
                    .serverStartPolicy("IF_NEEDED")
                    .serverPod(new ServerPod()
                            .addEnvItem(new V1EnvVar()
                                    .name("JAVA_OPTIONS")
                                    .value("-Dweblogic.StdoutDebugEnabled=false"))
                            .addEnvItem(new V1EnvVar()
                                    .name("USER_MEM_ARGS")
                                    .value("-Djava.security.egd=file:/dev/./urandom ")))
                    .adminServer(new AdminServer()
                            .serverStartState("RUNNING")
                            .adminService(new AdminService()
                                    .addChannelsItem(new Channel()
                                            .channelName("default")
                                            .nodePort(0))))
                    .addClustersItem(new Cluster()
                            .clusterName("cluster-1")
                            .replicas(replicaCount)
                            .serverStartState("RUNNING"))
                    .configuration(new Configuration()
                            .model(new Model()
                                    .domainType("WLS")
                                    .runtimeEncryptionSecret(encryptionSecretName))
                        .introspectorJobActiveDeadlineSeconds(300L)));
    if (configMapName != null) {
      domain.spec().configuration().model().configMap(configMapName);
    }
    return domain;
  }
private Domain createDomainResource ( String domainUid , String domNamespace , String adminSecretName , String repoSecretName , String encryptionSecretName , int replicaCount , String miiImage , String configMapName ) { Domain domain = new Domain ( ) . apiVersion ( DOMAIN_API_VERSION ) . kind ( "Domain" ) . metadata ( new V1ObjectMeta ( ) . name ( domainUid ) . namespace ( domNamespace ) ) . spec ( new DomainSpec ( ) . domainUid ( domainUid ) . domainHomeSourceType ( "FromModel" ) . image ( miiImage ) . addImagePullSecretsItem ( new V1LocalObjectReference ( ) . name ( repoSecretName ) ) . webLogicCredentialsSecret ( new V1SecretReference ( ) . name ( adminSecretName ) . namespace ( domNamespace ) ) . includeServerOutInPodLog ( true ) . serverStartPolicy ( "IF_NEEDED" ) . serverPod ( new ServerPod ( ) . addEnvItem ( new V1EnvVar ( ) . name ( "JAVA_OPTIONS" ) . value ( "-Dweblogic.StdoutDebugEnabled=false" ) ) . addEnvItem ( new V1EnvVar ( ) . name ( "USER_MEM_ARGS" ) . value ( "-Djava.security.egd=file:/dev/./urandom " ) ) ) . adminServer ( new AdminServer ( ) . serverStartState ( "RUNNING" ) . adminService ( new AdminService ( ) . addChannelsItem ( new Channel ( ) . channelName ( "default" ) . nodePort ( 0 ) ) ) ) . addClustersItem ( new Cluster ( ) . clusterName ( "cluster-1" ) . replicas ( replicaCount ) . serverStartState ( "RUNNING" ) ) . configuration ( new Configuration ( ) . model ( new Model ( ) . domainType ( "WLS" ) . runtimeEncryptionSecret ( encryptionSecretName ) ) . introspectorJobActiveDeadlineSeconds ( 300L ) ) ) ; if ( configMapName != null ) { domain . spec ( ) . configuration ( ) . model ( ) . configMap ( configMapName ) ; } return domain ; }
Construct a domain object with the given parameters that can be used to create a domain resource.
Construct a domain object with the given parameters that can be used to create a domain resource .
// create the domain CR