mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2025-12-31 08:19:54 -06:00
fix qs service
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
],
|
||||
"target": "ES2023",
|
||||
"isolatedModules": false,
|
||||
"noEmit": false
|
||||
"noEmit": false,
|
||||
},
|
||||
"include": [
|
||||
"src/server.ts"
|
||||
"src/server.ts",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user