@kumori/aurora-backend-handler 1.1.76 → 1.1.78
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 +17 -12
- package/package.json +1 -1
|
@@ -955,11 +955,13 @@ 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
|
-
|
|
958
|
+
registryCredentialsSecret: form.config.resources
|
|
959
|
+
.map((r) => {
|
|
960
|
+
if (r.type === "secret" && (r.key === "registryCredentials" || r.name === "registryCredentials")) {
|
|
961
|
+
return r.name;
|
|
962
|
+
}
|
|
963
|
+
})
|
|
964
|
+
.find((name) => name !== undefined),
|
|
963
965
|
config: {
|
|
964
966
|
parameters,
|
|
965
967
|
resources: componentResources,
|
|
@@ -1656,13 +1658,16 @@ async function generateServiceSpecDSL(
|
|
|
1656
1658
|
memoryRequirements: withDefaultValue(form.memoryRequirements, 0) * 1000,
|
|
1657
1659
|
registryUrl: withDefaultValue(form.registryUrl, "docker.io").trim(),
|
|
1658
1660
|
imageTag: withDefaultValue(form.imageTag, "").trim(),
|
|
1659
|
-
registryCredentialsSecret: form.
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1661
|
+
registryCredentialsSecret: form.config.resources
|
|
1662
|
+
.map((r) => {
|
|
1663
|
+
if (r.type === "secret" && r.key === "registryCredentials") {
|
|
1664
|
+
return r.name;
|
|
1665
|
+
}
|
|
1666
|
+
if (r.type === "secret" && r.name === "registryCredentials") {
|
|
1667
|
+
return r.value;
|
|
1668
|
+
}
|
|
1669
|
+
})
|
|
1670
|
+
.find((name) => name !== undefined),
|
|
1666
1671
|
config: {
|
|
1667
1672
|
parameters,
|
|
1668
1673
|
resources: componentResources,
|