remove load from default
This commit is contained in:
parent
4341fbb8a7
commit
dac065b677
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm i typescript && npx tsc",
|
"build": "npm i && npx tsc",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"dev": "nodemon src/index.ts"
|
"dev": "nodemon src/index.ts"
|
||||||
},
|
},
|
||||||
@ -16,10 +16,10 @@
|
|||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"express": "^4.19.2",
|
"express": "^4.19.2",
|
||||||
"yaml": "^2.4.2",
|
"yaml": "^2.4.2",
|
||||||
"zod": "^3.23.6",
|
"zod": "^3.23.6"
|
||||||
"typescript": "^5.4.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"typescript": "^5.4.5",
|
||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^4.17.21",
|
||||||
"@types/node": "^20.12.8",
|
"@types/node": "^20.12.8",
|
||||||
|
@ -27,7 +27,7 @@ dotenv.config()
|
|||||||
app.use(cors())
|
app.use(cors())
|
||||||
|
|
||||||
const kubeconfig = new KubeConfig()
|
const kubeconfig = new KubeConfig()
|
||||||
if (process.env.NODE_ENV !== "deployment") {
|
// if (process.env.NODE_ENV !== "deployment") {
|
||||||
kubeconfig.loadFromOptions({
|
kubeconfig.loadFromOptions({
|
||||||
clusters: [
|
clusters: [
|
||||||
{
|
{
|
||||||
@ -57,8 +57,8 @@ if (process.env.NODE_ENV !== "deployment") {
|
|||||||
],
|
],
|
||||||
currentContext: "gke_sylvan-epoch-422219-f9_us-central1_sandbox-cluster"
|
currentContext: "gke_sylvan-epoch-422219-f9_us-central1_sandbox-cluster"
|
||||||
});
|
});
|
||||||
}
|
// }
|
||||||
kubeconfig.loadFromDefault()
|
// kubeconfig.loadFromDefault()
|
||||||
|
|
||||||
const appsV1Api = kubeconfig.makeApiClient(AppsV1Api)
|
const appsV1Api = kubeconfig.makeApiClient(AppsV1Api)
|
||||||
const coreV1Api = kubeconfig.makeApiClient(CoreV1Api)
|
const coreV1Api = kubeconfig.makeApiClient(CoreV1Api)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user