@kumori/aurora-backend-handler 1.0.94 → 1.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -304,7 +304,8 @@ export const handleSecretEvent = (
|
|
|
304
304
|
eventData: any,
|
|
305
305
|
parentParts: { [entity: string]: string },
|
|
306
306
|
tenantsMap: Map<string, Tenant>,
|
|
307
|
-
secretsMap: Map<string, any
|
|
307
|
+
secretsMap: Map<string, any>,
|
|
308
|
+
hasRequestingServices: boolean = false,
|
|
308
309
|
): HandleResourceEventResult => {
|
|
309
310
|
return handleResourceEvent({
|
|
310
311
|
kind: "secret",
|
|
@@ -312,7 +313,7 @@ export const handleSecretEvent = (
|
|
|
312
313
|
parentParts,
|
|
313
314
|
tenantsMap,
|
|
314
315
|
secretsMap,
|
|
315
|
-
hasRequestingServices
|
|
316
|
+
hasRequestingServices
|
|
316
317
|
});
|
|
317
318
|
};
|
|
318
319
|
|
|
@@ -322,7 +323,8 @@ export const handleSecretEvent = (
|
|
|
322
323
|
export const handleCertificateEvent = (
|
|
323
324
|
eventData: any,
|
|
324
325
|
parentParts: { [entity: string]: string },
|
|
325
|
-
tenantsMap: Map<string, Tenant
|
|
326
|
+
tenantsMap: Map<string, Tenant>,
|
|
327
|
+
hasRequestingServices: boolean = false,
|
|
326
328
|
): HandleResourceEventResult => {
|
|
327
329
|
return handleResourceEvent({
|
|
328
330
|
kind: "certificate",
|
|
@@ -330,7 +332,7 @@ export const handleCertificateEvent = (
|
|
|
330
332
|
parentParts,
|
|
331
333
|
tenantsMap,
|
|
332
334
|
secretsMap: new Map(),
|
|
333
|
-
hasRequestingServices
|
|
335
|
+
hasRequestingServices
|
|
334
336
|
});
|
|
335
337
|
};
|
|
336
338
|
|
|
@@ -340,7 +342,8 @@ export const handleCertificateEvent = (
|
|
|
340
342
|
export const handleCAEvent = (
|
|
341
343
|
eventData: any,
|
|
342
344
|
parentParts: { [entity: string]: string },
|
|
343
|
-
tenantsMap: Map<string, Tenant
|
|
345
|
+
tenantsMap: Map<string, Tenant>,
|
|
346
|
+
hasRequestingServices: boolean = false,
|
|
344
347
|
): HandleResourceEventResult => {
|
|
345
348
|
return handleResourceEvent({
|
|
346
349
|
kind: "ca",
|
|
@@ -348,7 +351,7 @@ export const handleCAEvent = (
|
|
|
348
351
|
parentParts,
|
|
349
352
|
tenantsMap,
|
|
350
353
|
secretsMap: new Map(),
|
|
351
|
-
hasRequestingServices
|
|
354
|
+
hasRequestingServices
|
|
352
355
|
});
|
|
353
356
|
};
|
|
354
357
|
|
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -763,13 +763,8 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
if (serviceResult.wasDeployed) {
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
statusCode === "REMOVING_SERVICE" ||
|
|
769
|
-
statusCode === "DELETING" ||
|
|
770
|
-
resolvedService.error?.code === "REMOVING_SERVICE";
|
|
771
|
-
|
|
772
|
-
if (!isDeletingState) {
|
|
766
|
+
const isBeingDeleted = !!eventData.meta?.deleted;
|
|
767
|
+
if (!isBeingDeleted) {
|
|
773
768
|
eventHelper.service.publish.deployed(resolvedService);
|
|
774
769
|
}
|
|
775
770
|
}
|
|
@@ -907,6 +902,7 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
907
902
|
parentParts,
|
|
908
903
|
tenantsMap,
|
|
909
904
|
secretsMap,
|
|
905
|
+
hasRequestingServices,
|
|
910
906
|
);
|
|
911
907
|
secretResult.secretsToStore.forEach(({ key, value }) =>
|
|
912
908
|
secretsMap.set(key, value),
|
|
@@ -924,6 +920,7 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
924
920
|
eventData,
|
|
925
921
|
parentParts,
|
|
926
922
|
tenantsMap,
|
|
923
|
+
hasRequestingServices,
|
|
927
924
|
);
|
|
928
925
|
processResourceResult(
|
|
929
926
|
certificateResult,
|
|
@@ -934,12 +931,13 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
934
931
|
break;
|
|
935
932
|
|
|
936
933
|
case "ca":
|
|
937
|
-
const caResult = handleCAEvent(eventData, parentParts, tenantsMap);
|
|
934
|
+
const caResult = handleCAEvent(eventData, parentParts, tenantsMap, hasRequestingServices,);
|
|
938
935
|
processResourceResult(
|
|
939
936
|
caResult,
|
|
940
937
|
tenantsMap,
|
|
941
938
|
pendingDomains,
|
|
942
939
|
eventHelper,
|
|
940
|
+
|
|
943
941
|
);
|
|
944
942
|
break;
|
|
945
943
|
|