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": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/container": "^5.12.0",
|
|
||||||
"@kubernetes/client-node": "^0.21.0",
|
"@kubernetes/client-node": "^0.21.0",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
|
@ -12,7 +12,6 @@ import {
|
|||||||
NetworkingV1Api,
|
NetworkingV1Api,
|
||||||
} from "@kubernetes/client-node"
|
} from "@kubernetes/client-node"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
import container from '@google-cloud/container';
|
|
||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
const port = process.env.PORT || 4001
|
const port = process.env.PORT || 4001
|
||||||
@ -109,25 +108,25 @@ app.post("/test", async (req, res) => {
|
|||||||
app.post("/start", async (req, res) => {
|
app.post("/start", async (req, res) => {
|
||||||
const { sandboxId } = dataSchema.parse(req.body)
|
const { sandboxId } = dataSchema.parse(req.body)
|
||||||
|
|
||||||
async function main() {
|
// async function main() {
|
||||||
const client = new container.v1.ClusterManagerClient();
|
// const client = new container.v1.ClusterManagerClient();
|
||||||
|
|
||||||
async function quickstart() {
|
// async function quickstart() {
|
||||||
const zone = 'us-central1-a';
|
// const zone = 'us-central1-a';
|
||||||
const projectId = await client.getProjectId();
|
// const projectId = await client.getProjectId();
|
||||||
const request = {
|
// const request = {
|
||||||
projectId: projectId,
|
// projectId: projectId,
|
||||||
zone: zone,
|
// zone: zone,
|
||||||
};
|
// };
|
||||||
|
|
||||||
const [response] = await client.listClusters(request);
|
// const [response] = await client.listClusters(request);
|
||||||
console.log('Clusters: ', response);
|
// console.log('Clusters: ', response);
|
||||||
}
|
// }
|
||||||
|
|
||||||
quickstart();
|
// quickstart();
|
||||||
}
|
// }
|
||||||
|
|
||||||
main().catch(console.error);
|
// main().catch(console.error);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user