new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Kubernetes.java
public static boolean replaceConfigMap(V1ConfigMap configMap) throws ApiException {
    LoggingFacade logger = getLogger();
    if (configMap == null) {
      throw new IllegalArgumentException(
              "Parameter 'configMap' cannot be null when calling patchConfigMap()");
    }

    if (configMap.getMetadata() == null) {
      throw new IllegalArgumentException(
              "'metadata' field of the parameter 'configMap' cannot be null when calling patchConfigMap()");
    }

    if (configMap.getMetadata().getNamespace() == null) {
      throw new IllegalArgumentException(
              "'namespace' field in the metadata cannot be null when calling patchConfigMap()");
    }

    String namespace = configMap.getMetadata().getNamespace();

    V1ConfigMap cm;
    try {
      cm = coreV1Api.replaceNamespacedConfigMap(
              configMap.getMetadata().getName(),
              namespace,
              configMap, // config map configuration data
              PRETTY, // pretty print output
              null, // indicates that modifications should not be persisted
              null // name associated with the actor or entity that is making these changes
      );
      assertNotNull(cm, "cm replace failed ");
    } catch (ApiException apex) {
      logger.severe(apex.getResponseBody());
      throw apex;
    }

    return true;
  }
/**
   * Replace a Kubernetes Config Map.
   * The following command updates a complete configMap.
   *
   * @param configMap V1ConfigMap object containing config map configuration data
   * @return true if successful
   * @throws ApiException if Kubernetes client API call fails
   */
Replace a Kubernetes Config Map.
The following command updates a complete configMap.

@param configMap V1ConfigMap object containing config map configuration data
@return true if successful
@throws ApiException if Kubernetes client API call fails
Replace a Kubernetes Config Map . The following command updates a complete configMap . @param configMap V1ConfigMap object containing config map configuration data @return true if successful @throws ApiException if Kubernetes client API call fails
public static boolean replaceConfigMap(V1ConfigMap configMap) throws ApiException {
    LoggingFacade logger = getLogger();
    if (configMap == null) {
      throw new IllegalArgumentException(
              "Parameter 'configMap' cannot be null when calling patchConfigMap()");
    }
    if (configMap.getMetadata() == null) {
      throw new IllegalArgumentException(
              "'metadata' field of the parameter 'configMap' cannot be null when calling patchConfigMap()");
    }
    if (configMap.getMetadata().getNamespace() == null) {
      throw new IllegalArgumentException(
              "'namespace' field in the metadata cannot be null when calling patchConfigMap()");
    }
    String namespace = configMap.getMetadata().getNamespace();
    V1ConfigMap cm;
    try {
      cm = coreV1Api.replaceNamespacedConfigMap(
              configMap.getMetadata().getName(),
              namespace,
              configMap, 
              PRETTY, 
              null, 
              null 
      );
      assertNotNull(cm, "cm replace failed ");
    } catch (ApiException apex) {
      logger.severe(apex.getResponseBody());
      throw apex;
    }
    return true;
  }
public static boolean replaceConfigMap ( V1ConfigMap configMap ) throws ApiException { LoggingFacade logger = getLogger ( ) ; if ( configMap == null ) { throw new IllegalArgumentException ( "Parameter 'configMap' cannot be null when calling patchConfigMap()" ) ; } if ( configMap . getMetadata ( ) == null ) { throw new IllegalArgumentException ( "'metadata' field of the parameter 'configMap' cannot be null when calling patchConfigMap()" ) ; } if ( configMap . getMetadata ( ) . getNamespace ( ) == null ) { throw new IllegalArgumentException ( "'namespace' field in the metadata cannot be null when calling patchConfigMap()" ) ; } String namespace = configMap . getMetadata ( ) . getNamespace ( ) ; V1ConfigMap cm ; try { cm = coreV1Api . replaceNamespacedConfigMap ( configMap . getMetadata ( ) . getName ( ) , namespace , configMap , PRETTY , null , null ) ; assertNotNull ( cm , "cm replace failed " ) ; } catch ( ApiException apex ) { logger . severe ( apex . getResponseBody ( ) ) ; throw apex ; } return true ; }
Replace a Kubernetes Config Map.
Replace a Kubernetes Config Map .
// config map configuration data // pretty print output // indicates that modifications should not be persisted // name associated with the actor or entity that is making these changes