Revert "remove load from default"
This reverts commit dac065b677676a8db52e59298f550c1147304fc2.
This commit is contained in:
parent
2f46cfd5d3
commit
429b4c6044
@ -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",
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user