Skip to content

Commit

Permalink
Merge pull request #356 from hms-dbmi-cellenics/kubernetes-v2
Browse files Browse the repository at this point in the history
reverted json OK
  • Loading branch information
kafkasl authored May 11, 2022
2 parents 6e98caf + 79101f0 commit 64e7d56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api.v2/routes/kubernetes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const AWSXRay = require('aws-xray-sdk');
const k8s = require('@kubernetes/client-node');
const getLogger = require('../../utils/getLogger');
const { OK } = require('../../utils/responses');

const kc = new k8s.KubeConfig();
kc.loadFromDefault();
Expand All @@ -24,7 +23,7 @@ module.exports = {
logger.log(`removing pod ${name} in ${namespace}`);
await k8sApi.deleteNamespacedPod(name, namespace);
}
res.json(OK());
res.status(200).send('ok');
} catch (e) {
logger.error('error processing k8s event', e);
AWSXRay.getSegment().addError(e);
Expand Down

0 comments on commit 64e7d56

Please sign in to comment.