@kumori/aurora-backend-handler 1.1.79 → 1.1.80
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.
- package/api/deploy-service-helper.ts +12 -14
- package/package.json +1 -1
- package/websocket-manager.ts +1 -1
|
@@ -955,13 +955,11 @@ export async function generateServiceSpec(
|
|
|
955
955
|
memoryRequirements: withDefaultValue(form.memoryRequirements, 0) * 1000,
|
|
956
956
|
registryUrl: withDefaultValue(form.registryUrl, "docker.io").trim(),
|
|
957
957
|
imageTag: withDefaultValue(form.imageTag, "").trim(),
|
|
958
|
-
registryCredentialsSecret: form.config.resources
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
})
|
|
964
|
-
.find((name) => name !== undefined),
|
|
958
|
+
registryCredentialsSecret: form.config.resources.map((r) => {
|
|
959
|
+
if (r.type === "secret" && r.key === "registryCredentials") {
|
|
960
|
+
return r.name;
|
|
961
|
+
}
|
|
962
|
+
})[0],
|
|
965
963
|
config: {
|
|
966
964
|
parameters,
|
|
967
965
|
resources: componentResources,
|
|
@@ -1658,13 +1656,13 @@ async function generateServiceSpecDSL(
|
|
|
1658
1656
|
memoryRequirements: withDefaultValue(form.memoryRequirements, 0) * 1000,
|
|
1659
1657
|
registryUrl: withDefaultValue(form.registryUrl, "docker.io").trim(),
|
|
1660
1658
|
imageTag: withDefaultValue(form.imageTag, "").trim(),
|
|
1661
|
-
registryCredentialsSecret: form.
|
|
1662
|
-
.
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1659
|
+
registryCredentialsSecret: form.registryCredentialsSecret
|
|
1660
|
+
? form.config.resources.find(
|
|
1661
|
+
(r) => r.type === "secret" && r.name === form.registryCredentialsSecret,
|
|
1662
|
+
)?.name
|
|
1663
|
+
: form.config.resources.find(
|
|
1664
|
+
(r) => r.type === "secret" && r.key === "registryCredentials",
|
|
1665
|
+
)?.name,
|
|
1668
1666
|
config: {
|
|
1669
1667
|
parameters,
|
|
1670
1668
|
resources: componentResources,
|
package/package.json
CHANGED
package/websocket-manager.ts
CHANGED
|
@@ -349,7 +349,7 @@ export const initializeGlobalWebSocketClient = async (
|
|
|
349
349
|
message.error?.code === "_unknown_user_" &&
|
|
350
350
|
message.error?.content !== "Unknown proposed user."
|
|
351
351
|
) {
|
|
352
|
-
userData.status = "
|
|
352
|
+
userData.status = "notlogged";
|
|
353
353
|
user = new User(userData);
|
|
354
354
|
eventHelper.user.publish.loaded(user);
|
|
355
355
|
}
|