Skip to content

Commit

Permalink
fix: apply strategic merge to workspace-preferences-configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
akurinnoy committed Sep 23, 2024
1 parent 6121661 commit 04f0b76
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import com.google.gson.Gson;
import io.fabric8.kubernetes.api.model.ConfigMap;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.dsl.base.PatchContext;
import io.fabric8.kubernetes.client.dsl.base.PatchType;
import jakarta.ws.rs.core.UriInfo;
import java.net.URL;
import java.util.HashSet;
Expand Down Expand Up @@ -118,7 +120,7 @@ private void patchConfigMap(ConfigMap configMap) {
.configMaps()
.inNamespace(getFirstNamespace())
.withName(PREFERENCES_CONFIGMAP_NAME)
.patch(configMap);
.patch(PatchContext.of(PatchType.STRATEGIC_MERGE), configMap);
} catch (UnsatisfiedScmPreconditionException
| ScmConfigurationPersistenceException
| InfrastructureException e) {
Expand Down

0 comments on commit 04f0b76

Please sign in to comment.