integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
private void createConfigMapAndSecretForSitConfig() throws Exception {

    if ((domainMap.get("configOverrides") != null)
        && (domainMap.get("configOverridesFile") != null)) {
      // write hostname in config file for public address
      String configOverridesFile = domainMap.get("configOverridesFile").toString();

      // create configmap
      String cmd =
          "kubectl -n "
              + domainNS
              + " create cm "
              + domainUid
              + "-"
              + domainMap.get("configOverrides")
              + " --from-file "
              + configOverridesFile;
      TestUtils.execOrAbortProcess(cmd);

      // create label for configmap
      cmd =
          "kubectl -n "
              + domainNS
              + " label cm "
              + domainUid
              + "-"
              + domainMap.get("configOverrides")
              + " weblogic.domainUID="
              + domainUid;
      TestUtils.execOrAbortProcess(cmd);

      // create secret for custom sit config t3 public address
      // create datasource secret for user and password
      cmd =
          "kubectl -n "
              + domainNS
              + " create secret generic "
              + domainUid
              + "-test-secrets"
              + " --from-literal=hostname="
              + TestUtils.getHostName()
              + " --from-literal=dbusername=root"
              + " --from-literal=dbpassword=root123";
      TestUtils.execOrAbortProcess(cmd);
    }
  }
/**
   * Create config map and label with domainUid and create secret used in custom situational
   * configuration which contains hostname, db user, db password.
   *
   * @throws Exception When any of the kubectl commands to create config map, label, secret fails or
   *                   if could not run them
   */
Create config map and label with domainUid and create secret used in custom situational
configuration which contains hostname, db user, db password.

@throws Exception When any of the kubectl commands to create config map, label, secret fails or
if could not run them
Create config map and label with domainUid and create secret used in custom situational configuration which contains hostname db user db password . @throws Exception When any of the kubectl commands to create config map label secret fails or if could not run them
private void createConfigMapAndSecretForSitConfig() throws Exception {
    if ((domainMap.get("configOverrides") != null)
        && (domainMap.get("configOverridesFile") != null)) {
      String configOverridesFile = domainMap.get("configOverridesFile").toString();
      String cmd =
          "kubectl -n "
              + domainNS
              + " create cm "
              + domainUid
              + "-"
              + domainMap.get("configOverrides")
              + " --from-file "
              + configOverridesFile;
      TestUtils.execOrAbortProcess(cmd);
      cmd =
          "kubectl -n "
              + domainNS
              + " label cm "
              + domainUid
              + "-"
              + domainMap.get("configOverrides")
              + " weblogic.domainUID="
              + domainUid;
      TestUtils.execOrAbortProcess(cmd);
      cmd =
          "kubectl -n "
              + domainNS
              + " create secret generic "
              + domainUid
              + "-test-secrets"
              + " --from-literal=hostname="
              + TestUtils.getHostName()
              + " --from-literal=dbusername=root"
              + " --from-literal=dbpassword=root123";
      TestUtils.execOrAbortProcess(cmd);
    }
  }
private void createConfigMapAndSecretForSitConfig ( ) throws Exception { if ( ( domainMap . get ( "configOverrides" ) != null ) && ( domainMap . get ( "configOverridesFile" ) != null ) ) { String configOverridesFile = domainMap . get ( "configOverridesFile" ) . toString ( ) ; String cmd = "kubectl -n " + domainNS + " create cm " + domainUid + "-" + domainMap . get ( "configOverrides" ) + " --from-file " + configOverridesFile ; TestUtils . execOrAbortProcess ( cmd ) ; cmd = "kubectl -n " + domainNS + " label cm " + domainUid + "-" + domainMap . get ( "configOverrides" ) + " weblogic.domainUID=" + domainUid ; TestUtils . execOrAbortProcess ( cmd ) ; cmd = "kubectl -n " + domainNS + " create secret generic " + domainUid + "-test-secrets" + " --from-literal=hostname=" + TestUtils . getHostName ( ) + " --from-literal=dbusername=root" + " --from-literal=dbpassword=root123" ; TestUtils . execOrAbortProcess ( cmd ) ; } }
Create config map and label with domainUid and create secret used in custom situational
 configuration which contains hostname, db user, db password.
Create config map and label with domainUid and create secret used in custom situational configuration which contains hostname db user db password .
// write hostname in config file for public address // create configmap // create label for configmap // create secret for custom sit config t3 public address // create datasource secret for user and password