remove gcloud package

This commit is contained in:
Ishaan Dey 2024-05-13 16:05:08 -07:00
parent c1a597b9a2
commit 8b8bed75de
3 changed files with 15 additions and 866 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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 {