integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
protected void createSecret() throws Exception {
    Secret secret =
        new Secret(
            domainNS,
            domainMap.getOrDefault("secretName", domainUid + "-weblogic-credentials").toString(),
            BaseTest.getUsername(),
            BaseTest.getPassword());
    domainMap.put("weblogicCredentialsSecretName", secret.getSecretName());
    final String labelCmd =
        String.format(
            "kubectl label secret %s weblogic.domainUID=%s -n %s",
            secret.getSecretName(), domainUid, domainNS);
    TestUtils.execOrAbortProcess(labelCmd);
  }
/**
   * Create a Kubernetes secret and label the secret with domainUid. This secret is used for
   * weblogicCredentialsSecretName in the domain inputs.
   *
   * @throws Exception when the kubectl create secret command fails or label secret fails
   */
Create a Kubernetes secret and label the secret with domainUid. This secret is used for
weblogicCredentialsSecretName in the domain inputs.

@throws Exception when the kubectl create secret command fails or label secret fails
Create a Kubernetes secret and label the secret with domainUid . This secret is used for weblogicCredentialsSecretName in the domain inputs . @throws Exception when the kubectl create secret command fails or label secret fails
protected void createSecret() throws Exception {
    Secret secret =
        new Secret(
            domainNS,
            domainMap.getOrDefault("secretName", domainUid + "-weblogic-credentials").toString(),
            BaseTest.getUsername(),
            BaseTest.getPassword());
    domainMap.put("weblogicCredentialsSecretName", secret.getSecretName());
    final String labelCmd =
        String.format(
            "kubectl label secret %s weblogic.domainUID=%s -n %s",
            secret.getSecretName(), domainUid, domainNS);
    TestUtils.execOrAbortProcess(labelCmd);
  }
protected void createSecret ( ) throws Exception { Secret secret = new Secret ( domainNS , domainMap . getOrDefault ( "secretName" , domainUid + "-weblogic-credentials" ) . toString ( ) , BaseTest . getUsername ( ) , BaseTest . getPassword ( ) ) ; domainMap . put ( "weblogicCredentialsSecretName" , secret . getSecretName ( ) ) ; final String labelCmd = String . format ( "kubectl label secret %s weblogic.domainUID=%s -n %s" , secret . getSecretName ( ) , domainUid , domainNS ) ; TestUtils . execOrAbortProcess ( labelCmd ) ; }
Create a Kubernetes secret and label the secret with domainUid.
Create a Kubernetes secret and label the secret with domainUid .