new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItConfigDistributionStrategy.java
private static void createOCRRepoSecret(String namespace) {
    boolean secretExists = false;
    V1SecretList listSecrets = listSecrets(namespace);
    if (null != listSecrets) {
      for (V1Secret item : listSecrets.getItems()) {
        if (item.getMetadata().getName().equals(OCR_SECRET_NAME)) {
          secretExists = true;
          break;
        }
      }
    }
    if (!secretExists) {
      createDockerRegistrySecret(OCR_USERNAME, OCR_PASSWORD,
          OCR_EMAIL, OCR_REGISTRY, OCR_SECRET_NAME, namespace);
    }
  }
/**
   * Create secret for docker credentials.
   *
   * @param namespace name of the namespace in which to create secret
   */
Create secret for docker credentials.
@param namespace name of the namespace in which to create secret
Create secret for docker credentials . @param namespace name of the namespace in which to create secret
private static void createOCRRepoSecret(String namespace) {
    boolean secretExists = false;
    V1SecretList listSecrets = listSecrets(namespace);
    if (null != listSecrets) {
      for (V1Secret item : listSecrets.getItems()) {
        if (item.getMetadata().getName().equals(OCR_SECRET_NAME)) {
          secretExists = true;
          break;
        }
      }
    }
    if (!secretExists) {
      createDockerRegistrySecret(OCR_USERNAME, OCR_PASSWORD,
          OCR_EMAIL, OCR_REGISTRY, OCR_SECRET_NAME, namespace);
    }
  }
private static void createOCRRepoSecret ( String namespace ) { boolean secretExists = false ; V1SecretList listSecrets = listSecrets ( namespace ) ; if ( null != listSecrets ) { for ( V1Secret item : listSecrets . getItems ( ) ) { if ( item . getMetadata ( ) . getName ( ) . equals ( OCR_SECRET_NAME ) ) { secretExists = true ; break ; } } } if ( ! secretExists ) { createDockerRegistrySecret ( OCR_USERNAME , OCR_PASSWORD , OCR_EMAIL , OCR_REGISTRY , OCR_SECRET_NAME , namespace ) ; } }
Create secret for docker credentials.
Create secret for docker credentials .