Skip to content

Commit

Permalink
Merge pull request #99 from datawire/integration/set-keep-alive
Browse files Browse the repository at this point in the history
Set keepAlive to false
  • Loading branch information
rick-a-lane-ii authored Apr 24, 2024
2 parents 4bf94eb + 6ca8960 commit 97a247b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/actions/provision-cluster/lib/kubeception.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ function getHttpClient() {
const credentialHandler = new httpClientLib.BearerCredentialHandler(
kubeceptionToken
);
return new httpClient.HttpClient(userAgent, [credentialHandler]);

return new httpClient.HttpClient(userAgent, [credentialHandler], {
keepAlive: false,
});
}

module.exports = { Client, getHttpClient };
4 changes: 3 additions & 1 deletion .github/actions/provision-cluster/lib/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ async function notify(message) {
const runbook = core.getInput("slackRunbook");
const username = core.getInput("slackUsername");

const client = new http.HttpClient("datawire/provision-cluster");
const client = new http.HttpClient("datawire/provision-cluster", [], {
keepAlive: false,
});

const body = {
channel: channel,
Expand Down

0 comments on commit 97a247b

Please sign in to comment.