From 429b4c604402194fa031b89e997fc05ca3c7b3a2 Mon Sep 17 00:00:00 2001 From: Ishaan Dey Date: Mon, 13 May 2024 20:38:11 -0700 Subject: [PATCH] Revert "remove load from default" This reverts commit dac065b677676a8db52e59298f550c1147304fc2. --- backend/orchestrator/package.json | 6 +++--- backend/orchestrator/src/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/orchestrator/package.json b/backend/orchestrator/package.json index 6b1d158..dda158b 100644 --- a/backend/orchestrator/package.json +++ b/backend/orchestrator/package.json @@ -4,7 +4,7 @@ "description": "", "main": "src/index.js", "scripts": { - "build": "npm i && npx tsc", + "build": "npm i typescript && npx tsc", "start": "node dist/index.js", "dev": "nodemon src/index.ts" }, @@ -16,10 +16,10 @@ "dotenv": "^16.4.5", "express": "^4.19.2", "yaml": "^2.4.2", - "zod": "^3.23.6" + "zod": "^3.23.6", + "typescript": "^5.4.5" }, "devDependencies": { - "typescript": "^5.4.5", "@types/cors": "^2.8.17", "@types/express": "^4.17.21", "@types/node": "^20.12.8", diff --git a/backend/orchestrator/src/index.ts b/backend/orchestrator/src/index.ts index daa1759..fd43a3a 100644 --- a/backend/orchestrator/src/index.ts +++ b/backend/orchestrator/src/index.ts @@ -27,7 +27,7 @@ dotenv.config() app.use(cors()) const kubeconfig = new KubeConfig() -// if (process.env.NODE_ENV !== "deployment") { +if (process.env.NODE_ENV !== "deployment") { kubeconfig.loadFromOptions({ clusters: [ { @@ -57,8 +57,8 @@ const kubeconfig = new KubeConfig() ], currentContext: "gke_sylvan-epoch-422219-f9_us-central1_sandbox-cluster" }); -// } -// kubeconfig.loadFromDefault() +} +kubeconfig.loadFromDefault() const appsV1Api = kubeconfig.makeApiClient(AppsV1Api) const coreV1Api = kubeconfig.makeApiClient(CoreV1Api)