remove gcloud package
This commit is contained in:
parent
c1a597b9a2
commit
8b8bed75de
849
backend/orchestrator/package-lock.json
generated
849
backend/orchestrator/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,6 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@google-cloud/container": "^5.12.0",
|
||||
"@kubernetes/client-node": "^0.21.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.5",
|
||||
|
@ -12,7 +12,6 @@ import {
|
||||
NetworkingV1Api,
|
||||
} from "@kubernetes/client-node"
|
||||
import { z } from "zod"
|
||||
import container from '@google-cloud/container';
|
||||
|
||||
const app = express()
|
||||
const port = process.env.PORT || 4001
|
||||
@ -109,25 +108,25 @@ app.post("/test", async (req, res) => {
|
||||
app.post("/start", async (req, res) => {
|
||||
const { sandboxId } = dataSchema.parse(req.body)
|
||||
|
||||
async function main() {
|
||||
const client = new container.v1.ClusterManagerClient();
|
||||
// async function main() {
|
||||
// const client = new container.v1.ClusterManagerClient();
|
||||
|
||||
async function quickstart() {
|
||||
const zone = 'us-central1-a';
|
||||
const projectId = await client.getProjectId();
|
||||
const request = {
|
||||
projectId: projectId,
|
||||
zone: zone,
|
||||
};
|
||||
// async function quickstart() {
|
||||
// const zone = 'us-central1-a';
|
||||
// const projectId = await client.getProjectId();
|
||||
// const request = {
|
||||
// projectId: projectId,
|
||||
// zone: zone,
|
||||
// };
|
||||
|
||||
const [response] = await client.listClusters(request);
|
||||
console.log('Clusters: ', response);
|
||||
}
|
||||
// const [response] = await client.listClusters(request);
|
||||
// console.log('Clusters: ', response);
|
||||
// }
|
||||
|
||||
quickstart();
|
||||
}
|
||||
// quickstart();
|
||||
// }
|
||||
|
||||
main().catch(console.error);
|
||||
// main().catch(console.error);
|
||||
|
||||
try {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user