fix qs service

This commit is contained in:
biersoeckli
2024-11-25 18:16:40 +00:00
parent 35eb0a35af
commit b470358c47
3 changed files with 6 additions and 9 deletions

View File

@@ -29,7 +29,6 @@ class PodService {
return res.body;
}
async getPodInfoByName(projectId: string, podName: string) {
const res = await k3s.core.readNamespacedPod(podName, projectId);
return {
@@ -38,7 +37,6 @@ class PodService {
} as PodsInfoModel;
}
async getPodsForApp(projectId: string, appId: string) {
const res = await k3s.core.listNamespacedPod(projectId, undefined, undefined, undefined, undefined, `app=${appId}`);
return res.body.items.map((item) => ({

View File

@@ -4,8 +4,6 @@ import namespaceService from "./namespace.service";
import { StringUtils } from "../utils/string.utils";
import crypto from "crypto";
import { FancyConsoleUtils } from "../utils/fancy-console.utils";
import deploymentService from "./deployment.service";
import podService from "./pod.service";
class QuickStackService {
@@ -26,7 +24,7 @@ class QuickStackService {
await this.createOrUpdatePvc();
await this.createOrUpdateDeployment(undefined, nextAuthSecret);
await this.createOrUpdateService(true);
await this.waitUntilQuickstackIsRunning();
//await this.waitUntilQuickstackIsRunning();
console.log('QuickStack successfully initialized');
console.log('');
console.log('------------------------------------------------');
@@ -39,7 +37,8 @@ class QuickStackService {
console.log('------------------------------------------------');
console.log('');
}
/*
TODO enable again: error in setup process because of error: Cannot find module '@/model/service.exception.model'
async waitUntilQuickstackIsRunning() {
console.log('Waiting for QuickStack to be running...');
await new Promise((resolve) => setTimeout(resolve, 5000));
@@ -51,7 +50,7 @@ class QuickStackService {
}
await podService.waitUntilPodIsRunningFailedOrSucceded(this.QUICKSTACK_NAMESPACE, quickStackPod.podName);
console.log('QuickStack is now running');
}
}*/
async createOrUpdateIngress(hostname: string) {
const ingressName = StringUtils.getIngressName(this.QUICKSTACK_NAMESPACE);

View File

@@ -9,9 +9,9 @@
],
"target": "ES2023",
"isolatedModules": false,
"noEmit": false
"noEmit": false,
},
"include": [
"src/server.ts"
"src/server.ts",
]
}