mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 18:59:25 +00:00
🐛 fix: restore plugin auth and proxy connection info
This commit is contained in:
@@ -9,7 +9,11 @@ import type {
|
||||
ReverseProxyRepository,
|
||||
ReverseProxyUpdateInput,
|
||||
} from "../../domain/repositories/reverse-proxy.repository";
|
||||
import type { OperatorResourceSync } from "../../services/operator-resource-sync";
|
||||
import type { K8sService } from "../../services/k8s";
|
||||
import {
|
||||
type OperatorResourceSync,
|
||||
operatorResourceName,
|
||||
} from "../../services/operator-resource-sync";
|
||||
import type { IReverseProxyService } from "../interfaces/reverse-proxy.service.interface";
|
||||
import { BaseCrudService } from "./base-crud.service";
|
||||
|
||||
@@ -29,6 +33,7 @@ export class ReverseProxyService
|
||||
{
|
||||
constructor(
|
||||
reverseProxyRepo: ReverseProxyRepository,
|
||||
private k8sService: K8sService,
|
||||
private operatorResourceSync: OperatorResourceSync
|
||||
) {
|
||||
super(
|
||||
@@ -79,4 +84,10 @@ export class ReverseProxyService
|
||||
await super.deleteEnvVariable(proxyId, key);
|
||||
await this.operatorResourceSync.syncReverseProxyById(proxyId);
|
||||
}
|
||||
|
||||
async getConnectionInfo(proxyId: string) {
|
||||
const proxy = await this.getReverseProxyById(proxyId);
|
||||
const serviceName = `${String(proxy.type).toLowerCase()}-${operatorResourceName(proxyId)}`;
|
||||
return this.k8sService.getServerConnectionInfo(serviceName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user