new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean patchDomainCustomResource(String domainUid, String namespace,
                                                  V1Patch patch, String patchFormat) {

    // GenericKubernetesApi uses CustomObjectsApi calls
    KubernetesApiResponse<Domain> response = crdClient.patch(
            namespace, // name of namespace
            domainUid, // name of custom resource domain
            patchFormat, // "application/json-patch+json" or "application/merge-patch+json"
            patch // patch data
    );

    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to patch " + domainUid + " in namespace " + namespace + " using patch format: "
                      + patchFormat);
      return false;
    }

    return true;
  }
/**
   * Patch the Domain Custom Resource.
   *
   * @param domainUid unique domain identifier
   * @param namespace name of namespace
   * @param patch patch data in format matching the specified media type
   * @param patchFormat one of the following types used to identify patch document:
   *     "application/json-patch+json", "application/merge-patch+json",
   * @return true if successful, false otherwise
   */
Patch the Domain Custom Resource.
Patch the Domain Custom Resource .
public static boolean patchDomainCustomResource(String domainUid, String namespace,
                                                  V1Patch patch, String patchFormat) {
    KubernetesApiResponse<Domain> response = crdClient.patch(
            namespace, 
            domainUid, 
            patchFormat, 
            patch 
    );
    if (!response.isSuccess()) {
      getLogger().warning(
              "Failed to patch " + domainUid + " in namespace " + namespace + " using patch format: "
                      + patchFormat);
      return false;
    }
    return true;
  }
public static boolean patchDomainCustomResource ( String domainUid , String namespace , V1Patch patch , String patchFormat ) { KubernetesApiResponse < Domain > response = crdClient . patch ( namespace , domainUid , patchFormat , patch ) ; if ( ! response . isSuccess ( ) ) { getLogger ( ) . warning ( "Failed to patch " + domainUid + " in namespace " + namespace + " using patch format: " + patchFormat ) ; return false ; } return true ; }
Patch the Domain Custom Resource.
Patch the Domain Custom Resource .
// GenericKubernetesApi uses CustomObjectsApi calls // name of namespace // name of custom resource domain // "application/json-patch+json" or "application/merge-patch+json" // patch data