Skip to content

Commit

Permalink
Merge pull request #723 from eclipse-che/fix-declined-auth-startup
Browse files Browse the repository at this point in the history
fix: apply strategic merge to workspace-preferences-configmap
  • Loading branch information
akurinnoy committed Oct 4, 2024
1 parent e404512 commit 4121f99
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 4121f99

Please sign in to comment.