operator/src/main/java/oracle/kubernetes/operator/helpers/KubernetesUtils.java
static void addPatches(
        JsonPatchBuilder patchBuilder,
        String basePath,
        Map<String, String> current,
        Map<String, String> required) {
    for (String name : required.keySet()) {
      if (!current.containsKey(name)) {
        patchBuilder.add(basePath + name, required.get(name));
      } else {
        patchBuilder.replace(basePath + name, required.get(name));
      }
    }
  }
/**
   * Adds patches to the specified patch builder to correct differences in the current vs required
   * maps.
   *
   * @param patchBuilder a builder for the patches
   * @param basePath     the base for the patch path (excluding the name)
   * @param current      a map of the values found in a Kubernetes resource
   * @param required     a map of the values specified for the resource by the domain
   */
Adds patches to the specified patch builder to correct differences in the current vs required
maps.

@param patchBuilder a builder for the patches
@param basePath     the base for the patch path (excluding the name)
@param current      a map of the values found in a Kubernetes resource
@param required     a map of the values specified for the resource by the domain
Adds patches to the specified patch builder to correct differences in the current vs required maps . @param patchBuilder a builder for the patches @param basePath the base for the patch path ( excluding the name ) @param current a map of the values found in a Kubernetes resource @param required a map of the values specified for the resource by the domain
static void addPatches(
        JsonPatchBuilder patchBuilder,
        String basePath,
        Map<String, String> current,
        Map<String, String> required) {
    for (String name : required.keySet()) {
      if (!current.containsKey(name)) {
        patchBuilder.add(basePath + name, required.get(name));
      } else {
        patchBuilder.replace(basePath + name, required.get(name));
      }
    }
  }
static void addPatches ( JsonPatchBuilder patchBuilder , String basePath , Map < String , String > current , Map < String , String > required ) { for ( String name : required . keySet ( ) ) { if ( ! current . containsKey ( name ) ) { patchBuilder . add ( basePath + name , required . get ( name ) ) ; } else { patchBuilder . replace ( basePath + name , required . get ( name ) ) ; } } }
Adds patches to the specified patch builder to correct differences in the current vs required
 maps.
Adds patches to the specified patch builder to correct differences in the current vs required maps .