new-integration-tests/src/test/java/oracle/weblogic/kubernetes/ItPodsRestart.java
private boolean addServerPodResources(BigDecimal cpuLimit, BigDecimal cpuRequest) {
    // construct the patch string for adding server pod resources
    StringBuffer patchStr = new StringBuffer("[{")
        .append("\"op\": \"add\", ")
        .append("\"path\": \"/spec/serverPod/resources/limits/cpu\", ")
        .append("\"value\": \"")
        .append(cpuLimit)
        .append("\"}, {")
        .append("\"op\": \"add\", ")
        .append("\"path\": \"/spec/serverPod/resources/requests/cpu\", ")
        .append("\"value\": \"")
        .append(cpuRequest)
        .append("\"}]");

    logger.info("Adding server pod compute resources for domain {0} in namespace {1} using patch string: {2}",
        domainUid, domainNamespace, patchStr.toString());

    V1Patch patch = new V1Patch(new String(patchStr));

    return patchDomainCustomResource(domainUid, domainNamespace, patch, V1Patch.PATCH_FORMAT_JSON_PATCH);
  }
/**
   * Add server pod compute resources.
   *
   * @param cpuLimit cpu limit to be added to domain spec serverPod resources limits
   * @param cpuRequest cpu request to be added to domain spec serverPod resources requests
   * @return true if patching domain custom resource is successful, false otherwise
   */
Add server pod compute resources.
@param cpuLimit cpu limit to be added to domain spec serverPod resources limits
@param cpuRequest cpu request to be added to domain spec serverPod resources requests
@return true if patching domain custom resource is successful, false otherwise
Add server pod compute resources . @param cpuLimit cpu limit to be added to domain spec serverPod resources limits @param cpuRequest cpu request to be added to domain spec serverPod resources requests @return true if patching domain custom resource is successful false otherwise
private boolean addServerPodResources(BigDecimal cpuLimit, BigDecimal cpuRequest) {
    StringBuffer patchStr = new StringBuffer("[{")
        .append("\"op\": \"add\", ")
        .append("\"path\": \"/spec/serverPod/resources/limits/cpu\", ")
        .append("\"value\": \"")
        .append(cpuLimit)
        .append("\"}, {")
        .append("\"op\": \"add\", ")
        .append("\"path\": \"/spec/serverPod/resources/requests/cpu\", ")
        .append("\"value\": \"")
        .append(cpuRequest)
        .append("\"}]");
    logger.info("Adding server pod compute resources for domain {0} in namespace {1} using patch string: {2}",
        domainUid, domainNamespace, patchStr.toString());
    V1Patch patch = new V1Patch(new String(patchStr));
    return patchDomainCustomResource(domainUid, domainNamespace, patch, V1Patch.PATCH_FORMAT_JSON_PATCH);
  }
private boolean addServerPodResources ( BigDecimal cpuLimit , BigDecimal cpuRequest ) { StringBuffer patchStr = new StringBuffer ( "[{" ) . append ( "\"op\": \"add\", " ) . append ( "\"path\": \"/spec/serverPod/resources/limits/cpu\", " ) . append ( "\"value\": \"" ) . append ( cpuLimit ) . append ( "\"}, {" ) . append ( "\"op\": \"add\", " ) . append ( "\"path\": \"/spec/serverPod/resources/requests/cpu\", " ) . append ( "\"value\": \"" ) . append ( cpuRequest ) . append ( "\"}]" ) ; logger . info ( "Adding server pod compute resources for domain {0} in namespace {1} using patch string: {2}" , domainUid , domainNamespace , patchStr . toString ( ) ) ; V1Patch patch = new V1Patch ( new String ( patchStr ) ) ; return patchDomainCustomResource ( domainUid , domainNamespace , patch , V1Patch . PATCH_FORMAT_JSON_PATCH ) ; }
Add server pod compute resources.
Add server pod compute resources .
// construct the patch string for adding server pod resources