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