Skip to content

Commit

Permalink
Merge branch '5.12.2.1-hubspot' of github.com:HubSpot/kubernetes-clie…
Browse files Browse the repository at this point in the history
…nt into 5.12.2-hubspot
  • Loading branch information
bequinn-hubspot committed Nov 2, 2023
2 parents fa84fe6 + 5bff029 commit b8fafc4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;

import static io.fabric8.kubernetes.client.internal.PatchUtils.patchMapper;

Expand Down Expand Up @@ -281,7 +282,10 @@ protected void handleDelete(URL requestUrl, long gracePeriodSeconds, DeletionPro
deleteOptions.setDryRun(Collections.singletonList("All"));
}

HttpRequest.Builder requestBuilder = httpClient.newHttpRequestBuilder().delete(JSON, JSON_MAPPER.writeValueAsString(deleteOptions)).url(requestUrl);
String deleteOptionsBody = JSON_MAPPER.writeValueAsString(deleteOptions);
LOG.debug("Executing delete for {} with body {}", requestUrl, deleteOptionsBody);

HttpRequest.Builder requestBuilder = httpClient.newHttpRequestBuilder().delete(JSON, deleteOptionsBody).url(requestUrl);
handleResponse(requestBuilder, null, Collections.<String, String>emptyMap());
}

Expand Down

0 comments on commit b8fafc4

Please sign in to comment.